Posts

Showing posts with the label javascript

The ultimate ES5 JavaScript quiz

Image
So, you have just finished your supreme-js-learning-pack-for-idiots and coded some nice app and now are on the top of the world. You hail your code as supreme and think that now you have mastered everything. Then you are the right candidate for my quiz, which will test your abilities of dry running the program and knowing the idomatic ES5 (JavaScript) programming paradigms, along with some its usual quirks! :-) (Note: ES6 is not being tested here) JavaScript - easy to learn, hard to master! The quiz is subjective type. You are given a program snippet and are supposed to figure out the output. The program may  have an (intentionally inserted) error, so beware while deciding your answer. Assume that all snippets execute in a browser environment (in the global scope) with "use strict;" mode enabled. Each output has been tested on Chrome mainstream build and made browser independent. If you still feel your browser's console output is different, let me know in the ...