JavaScript Interview Question #44: Number vs BigInt in JS

What happens if we add an n suffix to a regular number in JavaScript? What鈥檚 the output? . . . . . . . . . . . . ....

March 6, 2021 路 1 min 路 Coderslang Master

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

What鈥檚 the difference between Object.toString and Array.toString in JavaScript? What鈥檚 the output? . . . . . . . . . . . . . . . . . A regular behavior of the JavaScript function Object....

March 3, 2021 路 1 min 路 Coderslang Master

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

How exactly Math.max works in JavaScript? What鈥檚 the output? . . . . . . . . . . . . . . . . . In JavaScript, the function Math....

February 28, 2021 路 1 min 路 Coderslang Master

JavaScript Interview Question #41: Increasing MAX_SAFE_INTEGER

True or false? What appears in the console? . . . . . . . . . . . . . . . . . JavaScript uses the double precision floating point numbers even to represent integers....

February 25, 2021 路 1 min 路 Coderslang Master

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

What鈥檚 the output? . . . . . . . . . . . . . . . . . In JavaScript, the typeof operator always returns a string. So, even though typeof undefined evaluates to undefined, it鈥檚 a string and not the primitive undefined value....

February 22, 2021 路 1 min 路 Coderslang Master

JS Interview #39: How does `setTimeout` work inside the `for` loop?

What will be logged to the console? . . . . . . . . . . . . . . . . . Before we analyze the code snippet, let鈥檚 try to simplify it by removing the setTimeout....

February 19, 2021 路 1 min 路 Coderslang Master

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

Can you add multiple arrays in JavaScript? What鈥檚 the output? . . . . . . . . . . . . . . . . . . The function add(x, y, z) applies the + operator to the provided arguments....

February 16, 2021 路 1 min 路 Coderslang Master

JS Interview #37: What is the type of a single argument provided to the split function?

What鈥檚 the output? . . . . . . . . . . . . . . . . . . In this code snipped, all the arguments provided to the function split will be collected and placed in a single array args....

February 13, 2021 路 1 min 路 Coderslang Master

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

Does the new array property affect its length? Is such an assignment valid at all? . . . . . . . . . . . . . . ....

February 10, 2021 路 1 min 路 Coderslang Master

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

What鈥檚 the order of the output? . . . . . . . . . . . . . . . . . Both setTimeout and Promise.resolve are asynchronous actions, which means that the inner console....

February 7, 2021 路 1 min 路 Coderslang Master