To many new developers the JavaScript world may seem pretty strange, especially to those from a traditional object-oriented background. Just googling around for some JavaScript code and explanations might reveal pretty messy code and confusing terminology. To make things easier, this video is going to give you an overview of JavaScript Prototype in a very simple way, so you can have a good foundation for programming with JavaScript.
JavaScript is a prototype-based language, therefore understanding the Prototype object is one of the most important concepts which JavaScript programmers need to know. If we define Prototype, we can say that it's just a built-in object inside every JavaScript function which points to another object. Any property or method inside a prototype object can be accessed by all new objects created from that function. Simple! But this is a theoretical definition. To know in detail, please watch the video from start to end. I can bet, you will never forget Prototype in your life. Happy coding!
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
2:22 - Object Introduction
6:20 - Return Object from function
8:56 - Object count optimization
11:55 - Object.create() Introduction
17:00 - Prototype Introduction
29:45 - Constructor function
32:13 - 'new' & 'this' keyword Introduction
41:27 - class conversion
44:00 - Example with Array().prototype
Reference -
1. w3schools - https://www.w3schools.com/js/js_objec...
2. Mozilla Documentation on Object Prototypes - https://developer.mozilla.org/en-US/d...
3. Mozilla Documentation on Inheritance & Prototype Chain - https://developer.mozilla.org/en-US/d...
#prototype #javascript #bangla_programming_tutorial
En esta página del sitio puede ver el video en línea Prototype - the foundation of JavaScript - JavaScript Bangla ( বাংলা ) Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Learn with Sumit - LWS - Bangladesh 05 septiembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 59,018 veces y le gustó 2.2 mil a los espectadores. Disfruta viendo!