0

I really dont understnd ES6 can anyone help in simpler form

need help

15th Mar 2021, 6:28 PM
Princess Licy Mahachi
Princess Licy Mahachi - avatar
10 Respuestas
+ 5
ECMAScript 6 is the version of ECMAScript, general-purpose programming language which main implementation is JavaScript. Information about ECMAScript: https://en.m.wikipedia.org/wiki/ECMAScript What has changed in JavaScript with ECMAScript 6 (with examples): https://www.w3schools.com/js/js_es6.asp
15th Mar 2021, 6:33 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 3
https://javascript.info/object
16th Mar 2021, 4:28 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Hi! please specify what exactly is not clear to you? what are objects in javascript?
15th Mar 2021, 6:31 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
thnx.....
15th Mar 2021, 6:46 PM
Princess Licy Mahachi
Princess Licy Mahachi - avatar
+ 2
to put it simply, in javascript everything that you take is an object
15th Mar 2021, 6:47 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
javascript objects are not messy... javascript objects use prototypal inheritance unlike most of OOP languages (wich use class inheritance)... es6 introduce 'class' syntaxic sugar to let users forgot that under the hood there's always prototypal inheritance... even if 'class' introduce shorter code declaration, you must understand how prototypal inheritance works to good deal with them (the mess is here ^^)... https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Inheritance https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes
15th Mar 2021, 7:17 PM
visph
visph - avatar
+ 2
I believe es6 introduces classes because lot of users claims for it, not to reduce the mess (as I think it rather augment the mess ^^)... the only thing classes allow that you cannot do without, is to properly inherit from built-in such as Array ;P
15th Mar 2021, 9:50 PM
visph
visph - avatar