View on GitHub

reads

https://yazansneneh.github.io/reads/

Object Literals

how to solve this problem ?

Why objects are useful ?

how to define objects ?

how to access attributes and modify it ?

* access attributes
  * objectName.attributeName
     * example : employeeAhmad.name;
* modify attributes.
  * objectName.attributeName = 'new value';
     * example : employeeAhmad.name = 'Afaf';

The Document Object Model (DOM):