- Explain event delegation
- Explain how this works in JavaScript
- Explain how prototypal inheritance works
- How do you go about testing your JavaScript?
- AMD vs. CommonJS?
- Which JavaScript libraries have you used?
- Have you ever looked at the source code of the libraries/frameworks you use?
- What are undefined and undeclared variables?
- What is a closure, and how/why would you use one?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( factory ) { | |
// if require js is available use it to define jquery and require it. | |
if ( typeof define === 'function' && define.amd ) { | |
define( ['jquery'], factory ); | |
} else if ( typeof module !== 'undefined' && module.exports ) { | |
var jQuery = require('jquery'); | |
module.exports = factory( $ ); | |
} else { | |
window.YourModule = factory( $ ); | |
} |