Object Oriented JavaScript Tutorial #6 - Class Methods

preview_player
Показать описание
🐱‍💻 Course Links:

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

Wow! Now I can understand what I have always seen on the console in the Chrome browser! Thank

Cho
Автор

Yeah, finally i got main difference between objects and classes

kishorenaidu
Автор

great video! just a question- what if you had to instantiate 100 users, or 1, 000... Is there a looping structure that you'd have to utilize along with the class constructor? thank you!

johnnygarces
Автор

You just explained a ocean into a lake great video keep it up

kalpeshkembale
Автор

If I understood correctly, properties inside the constructor() are specific to each object while properties outside the constructor() are essentially inside of the object prototype property?

bogomilstoynov
Автор

Which theme do you use in vs code? Because it looks really nice.

JumperRuby
Автор

Class / constructor syntax highlighting for Sublime Text 2. Any recommendations? Great vids, thanks.

spooky_zoo
Автор

console.log(this.email, ' just logged in'); --> why there is a ", " comma after this.email ? :)

rubitiara
Автор

are classes still used in JavaScript ? hasn't everything shifted to being function based now?

yadude
Автор

Great explanation bro..

Well explained..

__shaikmalikbasha__
Автор

what different between this

function personne(name, prenome, login)
{
this.name=name;
this.prenome=prenome;
this.login=function()
{
console.log(this.name);
}
}
var zakaria=new personne("zakaria", "zahidi");
console.log(zakaria.name);


and this


class personne
{
constructor(name, prenome){
this.name= name;
this.prenome = prenome;

}
login()
{
console.log(this.name);
}
}

zakariazahidi
Автор

how about we want to have math operator in class

johnthompson
Автор

How to pass arguments to those functions?

techwithshudarsan
Автор

hey please give a real example after complete this ooj series as soon as possible

asaduzzaman
Автор

Why putting methods outside of constructor class ??

norbidrake
Автор

at tutorial#6: why am i getting "undefined" ---> undefined 'Just logged out'

enockoloo
Автор

thanks for explaining the meta course does a horrible job explaining classes most of it is reading. i hate reading

proatbilliards
Автор

can i call you "senpai" ? (>v<)

pesantrenalhilalbandung
Автор

You didn't declare email and name as a global variables in the class, but you could refer and set this variables in the constructor. This is stupid feature and a bad practice in my opinion, these variables should be undefined. Why poeple who worked on ES6 make this posible and automatic, I don't know, but, in my opinion, it's dumb and a bad practice. If they introduce classes they should do it properly.

stefan