Using the new Keyword in JavaScript

preview_player
Показать описание
This video discusses the impact of using the keyword "new" when you call a function as well as the impact it has on the "this" keyword.

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

Thank you so much, I got stuck in new and this keyword what makes me unable to follow an existing project, this tutorials enabled me to resume it again.

rotrose
Автор

explained lots of thing about function and classes in js

zabinoori
Автор

prototype attribute is equivalent to Python’s __dict__ of class, I assume.

yt-
Автор

lol I never knew how much I dont understand "this" until I watched this video. Good video btw! Question: I'm of the opinion what I've been lacking in my independent learning of JS is a good text book. Would you happen to have a recommendation?

webstuff
Автор

thanks..it was insightfull and the book(you dont know js yet) you suggested in the comment section is just mindblowing..thanx a lot

RaGa_BABA
Автор

I don't see the value that "new" provides. I don't understand why anyone would use "this" and "new".

nigelbrie