0% found this document useful (0 votes)
2 views7 pages

Javascriptlesson 8

A JavaScript object is a collection of key-value pairs, where keys are property names and values can be various data types. Properties can be accessed, modified, added, or deleted using specific methods and notations. JavaScript also offers built-in methods like Object.keys(), Object.values(), and Object.assign() for object manipulation.

Uploaded by

vanguyen103
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views7 pages

Javascriptlesson 8

A JavaScript object is a collection of key-value pairs, where keys are property names and values can be various data types. Properties can be accessed, modified, added, or deleted using specific methods and notations. JavaScript also offers built-in methods like Object.keys(), Object.values(), and Object.assign() for object manipulation.

Uploaded by

vanguyen103
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Lesson: JavaScript Object Properties and Methods

1. What is a JavaScript Object?

A JavaScript object is a collection of key-value pairs, where each key is a property name (or identifier)
and each value can be any data type, including other objects, arrays, functions, and more.
Summary

 Properties: Key-value pairs within an object.

 Methods: Functions that are stored as object properties.

 Accessing properties: Use dot notation or bracket notation.

 Modifying properties: Use assignment (=) to modify properties.

 Adding properties: You can add properties dynamically to objects.

 Deleting properties: Use the delete operator.


 Built-in methods: JavaScript provides methods like Object.keys(), Object.values(), and
Object.assign() for interacting with objects.

You might also like