"Just like it's better to understand how prototypal inheritance works in JS BEFORE even using a single class declaration. "
About that, does JS class inheritance now work like classes in java for example? Or is it still just syntactic sugar for the prototype inheritance? By your wording, I assume the later?
Correct. It's still prototype based. Thus making the class keyword actually MORE confusing for people from other languages, IMO.
Well, it's complicated :-)
https://stackoverflow.com/questions/36419713/are-es6-classes...
Wow. I was hoping, at some point things would improve a bit.
Agreed. I find myself using a pretty small subset of the language which definitely doesn't include the class keyword. Doubt I'll ever find it useful.
Yeah, like many people, I ended up making my own inheritance routines. Then when class came out, I was half rejoicing, half regretting to put up the work. But well, no thanks. I rather keep using my own far from perfect way of things.
Yes because you can and should promisify old libraries.
Re:A Modern JavaScript Tutorial
by throw_m239339 on Tuesday December 08, 2020 @02:01AM
(#25342679)
No because some async Web API are just a bit more complex than just 'promisify' this or that.
No, because you might have to write explicit promises in the browser with async API that are callback based.
You need to understand how promises work to use async/await at first place anyway.
Just like it's better to understand how prototypal inheritance works in JS BEFORE even using a single class declaration.