more accessible to non-Java programmers Aka Mocha and LiveScript but was named JavaScript because of the popularity of Java Had low barrier to entry Went under European Computer Manufacturers Association in late 1996 JavaScript was under the commercial pressure because of the wars between Microsoft, Netscape and others. In the fall of 1996, Eich rewrite Mocha as the codebase that became known as SpiderMonkey
modules AMD (Asynchronous Module Definition) 1. define('myModule', 2. ['foo', 'bar'], 3. // module definition function 4. // dependencies (foo and bar) are mapped to function parameters 5. function ( foo, bar ) { 6. // return a value that defines the module export 7. // (i.e the functionality we want to expose for consumption) 8. 9. // create your module here 10. var myModule = { 11. doStuff:function(){ 12. console.log('Yay! Stuff'); 13. } 14. } 15. 16. return myModule; 17. }); 1. // Consider 'foo' and 'bar' are two external modules 2. // In this example, the 'exports' from the two modules loaded are passed as 3. // function arguments to the callback (foo and bar) 4. // so that they can similarly be accessed 5. 6. require(['foo', 'bar'], function ( foo, bar ) { 7. // rest of your code here 8. foo.doSomething(); 9. });
first is as a source or proving ground for important ideas. This includes languages like Smalltalk and Scheme. These languages are not widely used, but are generally recognized as brilliant, but out of fashion. They have a powerful influence on language designers. The second way that a language becomes important is by becoming popular.” -Douglas Crockford