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....
What will be logged to the console? . . . . . . . . . . . . . . . . . . At a first glance, the answer is true as 0....
You can check which browser the user is running using plain JavaScript. ...
What鈥檚 the output? . . . . . . . . . . . . . . . . . . So, there鈥檚 an if statement and it鈥檚 condition Math.max() > 0 is all we need to analyze....
What will be logged to the console? Will the finally block be executed? . . . . . . . . . . . . . . . . ....
What鈥檚 happened to arr? . . . . . . . . . . . . . . . . . Array.slice in JavaScript returns the shallow copy of the array....
Can you resolve and reject the JS Promise at the same time? What will be printed to the console? . . . . . . . . . . ....
Are there any differences between f1 and f2? . . . . . . . . . . . . . . . . . There are two ways of providing error handlers to the JavaScript Promises....
Equal or not? . . . . . . . . . . . . . . . . . In the first two lines we create new Date objects....
How fast is Promise.resolve() in JavaScript? Which of the messages will be logged first? . . . . . . . . . . . . . . . ....
Can you add a custom field to a regular JS string? What鈥檚 the output? . . . . . . . . . . . . . . . ....