JS Flashcards
Explain event delegation
a
Explain how this works in JavaScript
a
Explain how prototypal inheritance works
a
What do you think of AMD vs CommonJS?
a
Explain why the following doesn’t work as an IIFE: function foo(){ }();.
What needs to be changed to properly make it an IIFE?
a
What’s the difference between a variable that is: null, undefined or undeclared?
How would you go about checking for any of these states?
a
What is a closure, and how/why would you use one?
a
What’s a typical use case for anonymous functions?
a
How do you organize your code? (module pattern, classical inheritance?)
a
What’s the difference between host objects and native objects?
a
Difference between: function Person(){}, var person = Person(), and var person = new Person()?
a
What’s the difference between .call and .apply?
a
What’s the difference between .call and .apply?
a
When would you use document.write()?
a
What’s the difference between feature detection, feature inference, and using the UA string?
a
Explain Ajax in as much detail as possible.
a
What are the advantages and disadvantages of using Ajax?
a