Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

JS Objects

Real Life Objects

In real life, objects include things such as houses, cars, people, animals, and other subjects.

IMG_4127

 

 

 

 

 

 

 

 

Object Properties

A car has properties like weight and color (e.g., car.name = Fiat, car.model = 500). While car objects share the same properties, their values differ.

Object Methods

A car has methods like start, drive, brake, and stop. Car objects share these methods, but they are executed at different times.