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....
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? . . . . . . . . . . . . . . . ....
How many times can you splice the array in JavaScript? . . . . . . . . . . . . . . . . Let鈥檚 start with the definition of splice....
Let鈥檚 try to apply a generic toString function to a regular JavaScript array. What鈥檚 the output? . . . . . . . . . . . . . ....