DEV Community

Test your JavaScript skills Series' Articles

Back to Coderslang: Become a Software Engineer's Series
JS Test #1: Type conversion in JavaScript
Cover image for JS Test #1: Type conversion in JavaScript

JS Test #1: Type conversion in JavaScript

185
Comments 4
1 min read
JS Test #2: How to create an array in JavaScript
Cover image for JS Test #2: How to create an array in JavaScript

JS Test #2: How to create an array in JavaScript

34
Comments 2
1 min read
JS Test #3: Adding strings to numbers and booleans
Cover image for JS Test #3: Adding strings to numbers and booleans

JS Test #3: Adding strings to numbers and booleans

28
Comments
1 min read
JS Test #4: try/catch
Cover image for JS Test #4: try/catch

JS Test #4: try/catch

28
Comments 2
1 min read
JS Test #5: Can you use an arrow function as a getter?
Cover image for JS Test #5: Can you use an arrow function as a getter?

JS Test #5: Can you use an arrow function as a getter?

20
Comments
1 min read
JS Test #6: Variable number of arguments
Cover image for JS Test #6: Variable number of arguments

JS Test #6: Variable number of arguments

14
Comments
1 min read
JS Test #7: Is this an array?
Cover image for JS Test #7: Is this an array?

JS Test #7: Is this an array?

13
Comments 3
1 min read
JS Test #8: Zero timeout
Cover image for JS Test #8: Zero timeout

JS Test #8: Zero timeout

10
Comments
1 min read
JS Test #9: Promise.reject + try/catch
Cover image for JS Test #9: Promise.reject + try/catch

JS Test #9: Promise.reject + try/catch

14
Comments 1
1 min read
JS Test #11: Scope
Cover image for JS Test #11: Scope

JS Test #11: Scope

12
Comments
1 min read
JS Test #10: null + undefined
Cover image for JS Test #10: null + undefined

JS Test #10: null + undefined

14
Comments 1
1 min read
JS Test #12: Math.min()
Cover image for JS Test #12: Math.min()

JS Test #12: Math.min()

10
Comments
1 min read
JavaScript Interview #13: Big numbers
Cover image for JavaScript Interview #13: Big numbers

JavaScript Interview #13: Big numbers

13
Comments 3
1 min read
JavaScript Interview Question #14: 0.1 + 0.2 = ?
Cover image for JavaScript Interview Question #14: 0.1 + 0.2 = ?

JavaScript Interview Question #14: 0.1 + 0.2 = ?

42
Comments 4
1 min read
JavaScript Interview Question #15: Getter function
Cover image for JavaScript Interview Question #15: Getter function

JavaScript Interview Question #15: Getter function

29
Comments 2
1 min read
JavaScript Interview Question #16: typeof NaN
Cover image for JavaScript Interview Question #16: typeof NaN

JavaScript Interview Question #16: typeof NaN

17
Comments
1 min read
JavaScript Interview Question #17: Sum of Two Empty Arrays
Cover image for JavaScript Interview Question #17: Sum of Two Empty Arrays

JavaScript Interview Question #17: Sum of Two Empty Arrays

66
Comments 16
1 min read
JavaScript Interview Question #18: What's the sum of two booleans in JavaScript?
Cover image for JavaScript Interview Question #18: What's the sum of two booleans in JavaScript?

JavaScript Interview Question #18: What's the sum of two booleans in JavaScript?

48
Comments 8
1 min read
JavaScript Interview Question #19: Catching the rejected Promise
Cover image for JavaScript Interview Question #19: Catching the rejected Promise

JavaScript Interview Question #19: Catching the rejected Promise

25
Comments 2
1 min read
JavaScript Interview Question #20: Can you sum arrays with objects in JS?
Cover image for JavaScript Interview Question #20: Can you sum arrays with objects in JS?

JavaScript Interview Question #20: Can you sum arrays with objects in JS?

21
Comments
1 min read
JavaScript Interview Question #21: ISO Date
Cover image for JavaScript Interview Question #21: ISO Date

JavaScript Interview Question #21: ISO Date

17
Comments
1 min read
JavaScript Interview Question #22: How `toString` works in JavaScript?
Cover image for JavaScript Interview Question #22: How `toString` works in JavaScript?

JavaScript Interview Question #22: How `toString` works in JavaScript?

24
Comments
1 min read
JavaScript Interview Question #23: Array.splice
Cover image for JavaScript Interview Question #23: Array.splice

JavaScript Interview Question #23: Array.splice

25
Comments 2
2 min read
JavaScript Interview Question #24: Adding new properties to JS strings
Cover image for JavaScript Interview Question #24: Adding new properties to JS strings

JavaScript Interview Question #24: Adding new properties to JS strings

14
Comments 2
1 min read
JavaScript Interview Question #25: Immediate Promise.resolve
Cover image for JavaScript Interview Question #25: Immediate Promise.resolve

JavaScript Interview Question #25: Immediate Promise.resolve

30
Comments
1 min read
JavaScript Interview Question #26: Are these dates equal?
Cover image for JavaScript Interview Question #26: Are these dates equal?

JavaScript Interview Question #26: Are these dates equal?

20
Comments
1 min read
JavaScript Interview Question #27: Handling errors in JavaScript Promise chains
Cover image for JavaScript Interview Question #27: Handling errors in JavaScript Promise chains

JavaScript Interview Question #27: Handling errors in JavaScript Promise chains

30
Comments 4
1 min read
JavaScript Interview Question #28: Resolve and reject at the same time
Cover image for JavaScript Interview Question #28: Resolve and reject at the same time

JavaScript Interview Question #28: Resolve and reject at the same time

25
Comments 2
1 min read
JavaScript Interview Question #29: Slice and dice
Cover image for JavaScript Interview Question #29: Slice and dice

JavaScript Interview Question #29: Slice and dice

29
Comments
1 min read
JavaScript Interview Question #30: Reject inside resolve
Cover image for JavaScript Interview Question #30: Reject inside resolve

JavaScript Interview Question #30: Reject inside resolve

11
Comments
1 min read
JavaScript Interview Question #31: Big or small
Cover image for JavaScript Interview Question #31: Big or small

JavaScript Interview Question #31: Big or small

30
Comments 2
1 min read
JavaScript Interview Question #32: 0.1 + 0.1 + 0.1 === 0.3
Cover image for JavaScript Interview Question #32: 0.1 + 0.1 + 0.1 === 0.3

JavaScript Interview Question #32: 0.1 + 0.1 + 0.1 === 0.3

53
Comments 4
1 min read
JavaScript Interview Question #33: Add two empty arrays and check the type
Cover image for JavaScript Interview Question #33: Add two empty arrays and check the type

JavaScript Interview Question #33: Add two empty arrays and check the type

45
Comments 6
1 min read
JavaScript Interview Question #34: Different ways to get the current date in JS
Cover image for JavaScript Interview Question #34: Different ways to get the current date in JS

JavaScript Interview Question #34: Different ways to get the current date in JS

30
Comments
1 min read
JavaScript Interview Question #35: What is faster, zero timeout, or immediate resolve?
Cover image for JavaScript Interview Question #35: What is faster, zero timeout, or immediate resolve?

JavaScript Interview Question #35: What is faster, zero timeout, or immediate resolve?

50
Comments 5
1 min read
JavaScript Interview Question #36: Can you add a new property to the JS array?
Cover image for JavaScript Interview Question #36: Can you add a new property to the JS array?

JavaScript Interview Question #36: Can you add a new property to the JS array?

31
Comments 3
1 min read
JavaScript Interview Question #37: What's the type of a single argument provided to the split function?
Cover image for JavaScript Interview Question #37: What's the type of a single argument provided to the split function?

JavaScript Interview Question #37: What's the type of a single argument provided to the split function?

29
Comments
1 min read
JavaScript Interview Question #38: Can you add multiple arrays in JavaScript?
Cover image for JavaScript Interview Question #38: Can you add multiple arrays in JavaScript?

JavaScript Interview Question #38: Can you add multiple arrays in JavaScript?

42
Comments 8
1 min read
JavaScript Interview Question #39: How does setTimeout work inside the loop?
Cover image for JavaScript Interview Question #39: How does setTimeout work inside the loop?

JavaScript Interview Question #39: How does setTimeout work inside the loop?

45
Comments 4
1 min read
JavaScript Interview Question #40: What is the type of `undefined` in JS?
Cover image for JavaScript Interview Question #40: What is the type of `undefined` in JS?

JavaScript Interview Question #40: What is the type of `undefined` in JS?

29
Comments 5
1 min read
JavaScript Interview Question #41: Going above MAX_SAFE_INTEGER
Cover image for JavaScript Interview Question #41: Going above MAX_SAFE_INTEGER

JavaScript Interview Question #41: Going above MAX_SAFE_INTEGER

16
Comments
1 min read
JavaScript Interview Question #42: How Math.max works in JS
Cover image for JavaScript Interview Question #42: How Math.max works in JS

JavaScript Interview Question #42: How Math.max works in JS

21
Comments
1 min read
JavaScript Interview Question #43: Object.toString vs Array.toString
Cover image for JavaScript Interview Question #43: Object.toString vs Array.toString

JavaScript Interview Question #43: Object.toString vs Array.toString

14
Comments 4
1 min read
JavaScript Interview Question #44: Number vs BigInt in JS
Cover image for JavaScript Interview Question #44: Number vs BigInt in JS

JavaScript Interview Question #44: Number vs BigInt in JS

19
Comments 2
1 min read
JavaScript Interview Question #45: Сurrency formatting in JS
Cover image for JavaScript Interview Question #45: Сurrency formatting in JS

JavaScript Interview Question #45: Сurrency formatting in JS

51
Comments
1 min read
JavaScript Interview Question #46: Length of JS functions
Cover image for JavaScript Interview Question #46: Length of JS functions

JavaScript Interview Question #46: Length of JS functions

64
Comments 10
1 min read
JavaScript Interview Question #47: How Object.setPrototypeOf works in JS
Cover image for JavaScript Interview Question #47: How Object.setPrototypeOf works in JS

JavaScript Interview Question #47: How Object.setPrototypeOf works in JS

26
Comments
2 min read
JavaScript Interview Question #48: Dog-sized Cat
Cover image for JavaScript Interview Question #48: Dog-sized Cat

JavaScript Interview Question #48: Dog-sized Cat

36
Comments 2
1 min read
JavaScript Interview Question #49: Add a new array element by index
Cover image for JavaScript Interview Question #49: Add a new array element by index

JavaScript Interview Question #49: Add a new array element by index

45
Comments 5
1 min read
JavaScript Interview Question #50: How does Intl.Collator work in JS
Cover image for JavaScript Interview Question #50: How does Intl.Collator work in JS

JavaScript Interview Question #50: How does Intl.Collator work in JS

25
Comments
1 min read