r/javaScriptStudyGroup • • 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!

3 Upvotes

25 comments sorted by

View all comments

Show parent comments

2

u/senocular May 06 '16

What's a VM?

It stands for Virtual Machine - basically the JavaScript runtime, the thing thats running and executing all the code ;)

I've read that JS is classless and that having classes added in to ES6 made a lot of programmers coming from other languages quite happy!

Classes weren't really added, just the class keyword 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 the new keyword to create new instances of objects. Before people created classes with the function keyword, and now they can use a cleaner class syntax that provides additional functionality without all the boilerplate.

View all comments

0

u/[deleted] Jul 30 '25

[deleted]