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

JS Interview #31: Big or small

What鈥檚 the output? . . . . . . . . . . . . . . . . . . So, there鈥檚 an if statement and it鈥檚 condition Math.max() > 0 is all we need to analyze....

January 26, 2021 路 1 min 路 Coderslang Master

JS Interview #30: Reject inside resolve

What will be logged to the console? Will the finally block be executed? . . . . . . . . . . . . . . . . ....

January 23, 2021 路 1 min 路 Coderslang Master

JS Interview #29: Slice and dice

What鈥檚 happened to arr? . . . . . . . . . . . . . . . . . Array.slice in JavaScript returns the shallow copy of the array....

January 20, 2021 路 2 min 路 Coderslang Master

JS Interview #28: Resolve and reject at the same time

Can you resolve and reject the JS Promise at the same time? What will be printed to the console? . . . . . . . . . . ....

January 17, 2021 路 1 min 路 Coderslang Master

JS Interview #27: Handling errors in JavaScript Promise chains

Are there any differences between f1 and f2? . . . . . . . . . . . . . . . . . There are two ways of providing error handlers to the JavaScript Promises....

January 14, 2021 路 1 min 路 Coderslang Master

JS Interview #26: Are these dates equal?

Equal or not? . . . . . . . . . . . . . . . . . In the first two lines we create new Date objects....

January 11, 2021 路 1 min 路 Coderslang Master

JS Interview #25: Immediate Promise.resolve

How fast is Promise.resolve() in JavaScript? Which of the messages will be logged first? . . . . . . . . . . . . . . . ....

January 8, 2021 路 1 min 路 Coderslang Master

JS Interview #24: Adding properties to strings in JavaScript

Can you add a custom field to a regular JS string? What鈥檚 the output? . . . . . . . . . . . . . . . ....

January 5, 2021 路 1 min 路 Coderslang Master

JS Interview #23: Array.splice

How many times can you splice the array in JavaScript? . . . . . . . . . . . . . . . . Let鈥檚 start with the definition of splice....

January 2, 2021 路 2 min 路 Coderslang Master

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

Let鈥檚 try to apply a generic toString function to a regular JavaScript array. What鈥檚 the output? . . . . . . . . . . . . . ....

December 30, 2020 路 1 min 路 Coderslang Master