Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

is javascript variable also an object

Objects are variables too. But objects can contain many values.

// Example
let car = "Fiat";  // variable or object named car

const car = {	   // many values (Fiat, 500, white) assigned to a variable or object named car
  type: "Fiat",
  model: "500", 
  color: "white"
};  
 
PREVIOUS NEXT
Tagged: #javascript #variable #object
ADD COMMENT
Topic
Name
2+5 =