What is Constructor Function in JavaScript? - JS Tutorial

ColorCode
ColorCode
44.5 هزار بار بازدید - 3 سال پیش - What are Constructor Functions in
What are Constructor Functions in JavaScript?

JavaScript Constructor Functions from the series "10 Things JS Developers Should Know"
by ColorCode.io, Sina Jazayeri

Full playlist here: 20 Things JavaScript Developers Shoul...

This is episode 4 in a 10 part series I’m calling 10 things javascript developers should know but probably don’t. In this series, we’re going to cover some of the most fundamental and important parts of JavaScript that most of us don’t actually know, and barely touch. Today, for episode 4, we’re talking about Constructors and Constructor Functions, the idea behind them, the problem they solve, and how they're different from Factory Functions. Episode 4: Constructor Functions. Let’s go!

All the code from this series is available here:
https://github.com/ColorCode/js-10-th...


0:00:00 Intro
0:01:04 What is a Constructor Function?
0:02:57 The concept
0:05:30 The code
0:09:53 Another example
0:15:49 Summary
0:16:48 Outro
3 سال پیش در تاریخ 1400/02/08 منتشر شده است.
44,574 بـار بازدید شده
... بیشتر