Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 582 Bytes

File metadata and controls

19 lines (17 loc) · 582 Bytes

function

function consist of many statement to execute the specific task this example tow create function using javascript
function sum(){ var x=10; var y=20 var z= x+y; }

tow call this function write the name the parntheses

example sum()

object

consist of method and function

object properties

roperties are the values associated with a JavaScript object.

A JavaScript object is a collection of unordered properties.

Properties can usually be changed, added, and deleted, but some are read only. example objectName.property // person.age