JavaScript Classes In 90 Seconds #JavaScriptJanuary

preview_player
Показать описание
Watch the entire #JavaScriptJanuary series from the beginning!

In JavaScript, classes are like blueprints to create objects with.

A class is a type of function, but instead of using the function keyword to initiate it, we use the class keyword. Then the properties are assigned inside a constructor() method.

The constructor method is required and must have the exact name “constructor”. This method is called automatically when the class is initiated.

The idea behind this is to be able to create multiple instances of a predefined object.

I'll be releasing a new video every day in January! Stay tuned..
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#JavaScriptJanuary #31Days31Videos #codeSTACKr
Рекомендации по теме
Комментарии
Автор

Thanks for all of the support! Stay tuned for a new video every day in January!!

Watch the entire #JavaScriptJanuary series from the beginning!

📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)

codeSTACKr
Автор

We also need the #JavascriptFebruary . 😊

Please don't stop making this series, sir.

Thanks a lot for sharing! 👏🏽👏🏽

Автор

Just awesome series on javascript and worth spending time on it even for experienced people

arpithamarganalli
Автор

Amazing video seriously, what is the font family of those code examples?

TheMater
Автор

I will try this later on my own but, out of curiosity, if the method that you create within the Class, you decide to create it as an arrow function, does the "this" keyword still reference the outer scope, meaning the Class or it's then function scope?

hectorserrano
Автор

can you tell me how to convert array into object. i need to use it in moongose.i am asking you because i can't understand from other source.please tell how this works.
for (const opt of req.body) {
updateopt[opt.propName] = opt.value;
}

jacksonnadar
Автор

getFullName()
{
return `${this.fistName} ${this.lastName}` ;
}


is there $ sign is required? and if yes so why sorry?
Thank you.

karenkharatyan