Intro to JavaScript Classes

preview_player
Показать описание
One of the new features in ES6 is the addition of the `class` keyword.
To be clear, CLASSES DO NOT REALLY EXIST in JavaScript. All the Class functionality is still just a syntactic wrapper around Objects and the JavaScript Prototype chain.
However, that doesn't mean you can't use them to write your code.

Рекомендации по теме
Комментарии
Автор

Everything after being explained by you becomes crystal clear, best teacher. Thank you.

rotrose
Автор

Hey Steve. Just wanted to let you know that your videos helped me out tackling a frontend education. I had my first job interview recently and I could answer all the technical questions, so I wanted to thank you for making these videos for FREE and I can't wait to check out your videos on React also. I'm switching career from English teacher to web developer and I just wanted to thank you so much.

Still a long way to go, but I figured it's rare to see a comment that's not about being a beginner (not that there's any problem with it). As a teacher I love when students are taking that knowledge somewhere and you actually made a difference.

And you Sir, actually did. Thank you

chtulurr
Автор

This one kicks the pants off the others in terms of clarity and calm delivery. thanks for a super tutorial!

JohnBartmannMusic
Автор

You are the Corey M Schafer of JavaScript, simply great!

kosnowman
Автор

I love thunder. I love Ferraris, especially the Testarossa. On top of all that there is an awesome intro to classes in JS! This is awesome! Keep up the good work Mr! +1

JonEastling
Автор

My favorite JavaScript teacher. You rock man!

douggreene
Автор

Rewatched again to refresh my memory, outstanding intro👏.
I hate classes(because they're too verbose, not as eloquent as functions). Try to omit them whenever I can. But sometimes they're necessary, I didn't find another way to draw bullets in a canvas shooting game.

zakhariihusar
Автор

Thanks so much, it's explain a lot about JS Classes.

heinhtet
Автор

Hi Steve, why did you in the end use Car.accelerate() and not ferrari.accelerate()? Isn’t it the point that you have the ferrari inherit the class methods of Car and then use it? Thank you for the explaining btw.

bossmaen
Автор

i just don't get it with static methods. like if i want to use a constructor and static methods, how will i use the class, you know what i mean ? like do i use new Car() or just Car ? if i use Car, i guess constructor isn't calling, right ?

arinamartens
Автор

Do i understand correct the class function is working like the callback function?

juanyang
Автор

okay goodjob, I learnt just some few tricks but I didn't got the main stuff, Try to explain every subject from scartch, some people didn't know what is the underscore meant by or the this, construct keywords, TRY TO SIMPILFY THE STUFF YOU'RE DOING .

meddhia