JavaScript Object in Depth.

Опубликовано: 14 Октябрь 2024
на канале: CodAffection
4,028
112

🍒 Related Videos
Next Part:    • JavaScript Syntaxes :  Destructuring ...  
Prev. Part:    • JavaScript Arrow Function | Everybody...  

💖 Channel Support
➤ Paypal: https://bit.ly/3L36ut4
➤ UPI App: https://geni.us/ScanQRCode
➤ Amazon: https://geni.us/AmazonAffiliated

💌 For Business Inquiries
[email protected]

🚶‍♂️ Follow us
Facebook :   / codaffection  
Discord :   / discord  
Twitter :   / codaffection  

---
Object in JavaScript

JavaScript Object allows us to represent a real-world object into a data structure in our program. apart from copying representation of the real world, we also mimic real-world concepts in the language. But those concepts will be discussed under the OOP or object-oriented Programming Session.

An object is described with its properties and methods. There are two ways to access properties or methods from an object. They are dot notation and square bracket notation. square bracket notation can be used anywhere, though it's very common to use dot notation because it is straightforward and easy to write.

Finally, we also discussed how to add, modify and delete properties in an object. As a bonus discussion, we also covered an array of objects and an array as a property of an object.

Discussion @ times
--------------------------------
00:00 - What is a JavaScript Object.
02:39 - How to Create Objects in JavaScript.
04:23 - Access Properties of an Object.
05:43 - Limitations of Accessing Properties with Dot Notation.
13:11 - Add Methods to an Object.
19:08 - Add, Update or Delete Object Properties.
21:21 - Array of Objects.

#JavaScript #JavaScriptBeginnersTutorial #CodAffection