Javascript Flashcards
0
Q
Implementation of static vs instance method?
A
Static method gets defined as a property of the class name.
Instance methods get defined on the prototype of the class so that they are available to all the instances.
- If static methods are initialized during parsing of the JS then they get preserved over multiple loading if using react or some other dependency management.
- Look here
1
Q
var o = Object.create(null) will create what?
A
Object o without prototype object.