馃殌 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 馃挭

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

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

How do you prefer to get the current date in JS? What will be logged to the console? . . . . . . . . . . . ....

February 4, 2021 路 1 min 路 Coderslang Master

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

Array? Object? Undefined? What鈥檚 the output? . . . . . . . . . . . . . . . . . . In JavaScript, the + operator doesn鈥檛 do the concatenation of arrays....

February 1, 2021 路 1 min 路 Coderslang Master

JS Interview #32: 0.1 + 0.1 + 0.1 === 0.3

What will be logged to the console? . . . . . . . . . . . . . . . . . . At a first glance, the answer is true as 0....

January 29, 2021 路 1 min 路 Coderslang Master