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

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

How to detect the user browser with JavaScript

You can check which browser the user is running using plain JavaScript. ...

January 28, 2021 路 1 min 路 Coderslang Master

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