-
Notifications
You must be signed in to change notification settings - Fork 0
/
Q2.txt
23 lines (18 loc) · 846 Bytes
/
Q2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Write a blog about objects and its internal representation in Javascript?
Objects:-
Objects is a groups of a data that is stored as a series of name values pairs
encapslated in one entity.such as number,string,boolean all are always objects.
Objects diclaration is variable name folloed by key and values.
Example:-
if a car is object, it will have engine,color,name,Cubic capacity this is a
car properties so the car is a object.
SYNTAX:-
var car={
name:"BMW",
color:"red",
engine:"2000HSP",
Cubic capacity:1500
}
console.log(car);
OUTPUT:-
{name:"BMW";color:"red";engine:"2000HSP";Cubic capacity:1500}