-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTask 1.2.rtf
18 lines (15 loc) · 1 KB
/
Task 1.2.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset2 Symbol;}}
{\*\generator Riched20 10.0.17134}\viewkind4\uc1
\pard\sa200\sl276\slmult1\f0\fs22\lang9\par
1. What is Object and representation in Js?\par
\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1 Object is nothing but real world entity are called has Object.\par
{\pntext\f1\'B7\tab}An entity having state and behavior (properties and method). \par
{\pntext\f1\'B7\tab}In Js Object defined as unorder collection of related data we can strore into object in the form of "Key : value" pairs.\par
{\pntext\f1\'B7\tab}Syntax : let x = \{ name : "......." \};\par
{\pntext\f1\'B7\tab}Ex: Let car = \{ name : "BMW", color : "Black", price: 75L\};\par
{\pntext\f1\'B7\tab}Js is a dynamic language. Based on a value assigned a variable it can be adopped default. \par
\pard\sa200\sl276\slmult1\par
\par
\pard\sa200\sl276\slmult1\par
}