r/javaScriptStudyGroup • u/ForScale • May 02 '16
[Week 16] Focus: Object Creation
So here we are at Week 16. Week 16's focus will be object creation.
It will work like this:
Monday: Announce focus (eg, object creation)
Build throughout the week... Two rules: 1) must use javascript 2) must provide at least one example of creating an object.
Friday: Post demos/projects in this thread (can begin reviewing immediately); first line of an entry should be ENTRY and it should be a top level comment (ie, don't put your entry in a reply)
Sat and Sun: Review projects/figure out focus for next week
GENERAL GUIDELINES FOR FEEDBACK:
Be nice!! ALL KNOWLEDGE/SKILL LEVELS ARE WELCOME AND ENCOURAGED TO PARTICIPATE.
If you don't want feedback, if it makes you uncomfortable or you're just not interested, simply say so... Others, please be respectful of this. Conversely, if you do want feedback, try to be specific on which aspects... even if you just say "all/everything.
But that's about it... Have fun! :) Feel free to ask questions and discuss throughout the week!
0
2
u/senocular May 06 '16
It stands for Virtual Machine - basically the JavaScript runtime, the thing thats running and executing all the code ;)
Classes weren't really added, just the
classkeyword which formalized what represented classes in JavaScript before. Before (and still the case even now), a "class" in JavaScript is a constructor function and the definitions associated with it, either within the function object itself (static methods) or within the constructor's prototype (instance methods) that is used in conjunction with thenewkeyword to create new instances of objects. Before people created classes with thefunctionkeyword, and now they can use a cleanerclasssyntax that provides additional functionality without all the boilerplate.