Timeline for Unable to solve mystery of functions in Javascript
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 19, 2018 at 21:02 | history | edited | Ewan | CC BY-SA 3.0 |
added 275 characters in body
|
Apr 19, 2018 at 20:17 | comment | added | Jared Smith |
@HamzaFatmi the semantics are not entirely equivalent. I can think of at least three differences off the top of my head: classes throw when called without new , class bodies are implicitly in strict mode, and classes can correctly extend built-ins like Array and Function. None of those are true of old-school constructor functions.
|
|
Apr 19, 2018 at 18:02 | comment | added | Ewan | erm? to point out that it isn't clear from the doc | |
Apr 19, 2018 at 17:43 | comment | added | Umair Abid | @Ewan even if yourself thinks it needs more digging, not sure what sarcasm was intended for | |
Apr 19, 2018 at 15:20 | comment | added | Ewan | true, ill add more later, need to do some digging | |
Apr 19, 2018 at 14:54 | comment | added | Robert Harvey |
Your sarcasm moniker otherwise, this text really is quite opaque to a beginner.
|
|
Apr 19, 2018 at 13:49 | comment | added | Hamza Fatmi | @ncmathsadist ES6 classes are just a syntactic sugar, the semantics are the same. | |
Apr 19, 2018 at 13:38 | history | edited | Ewan | CC BY-SA 3.0 |
added 619 characters in body
|
Apr 19, 2018 at 13:37 | comment | added | ncmathsadist | Now it does. ECMA6 allows you to create classes and instantiate objects from them. | |
Apr 19, 2018 at 13:30 | history | answered | Ewan | CC BY-SA 3.0 |