-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday1.js
More file actions
147 lines (99 loc) · 1.79 KB
/
day1.js
File metadata and controls
147 lines (99 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// hello , just learning git commands
/**
*
* This is multiline comment
*
* git add . -> which adds all the local changes to the stage
*
* git status -> to verify all files are committed/ if anything else need to be committed
*
* git commit -m 'learning git commands'
*
*
* git push
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
// variables
// let, const
let a = 5;
const b = 4;
b = a+b;
console.log(b);
// data types
let names = 'Ram';
// 'C' // -> character
// 'ABCD' // -> STRING
// 1, 1.5 // -> number
// 'A1@' // -> String
// true, false // -> boolean
// const ab = true;
// data structure
// array -> array is collection of similar type of elements
const fruits = ['mango', 'apple', 'guava'];
const ages = [1,4,34,40];
// family
const dadAge = 55;
const momAge = 48;
const ramAge = 29;
const bhavaniAge = 27;
const familyAge = [55,48,29,27];
const familyArray = [{name: 'ram',
age: 23,
address: '318 west, tx, 78634',
height: 6,
weight: 20,
favColors: ['red', 'yellow', 'orange'],
favNums: [1,2,3,]},
{name: 'bhavani',
age: 23,
address: '318 west, tx, 78634',
height: 6,
weight: 20,
favColors: ['red', 'yellow', 'orange'],
favNums: [1,2,3,]},
{name: 'prabhavathi',
age: 23,
address: '318 west, tx, 78634',
height: 6,
weight: 20,
favColors: ['red', 'yellow', 'orange'],
favNums: [1,2,3,]},
{name: 'Ramarao',
age: 23,
address: '318 west, tx, 78634',
height: 6,
weight: 20,
favColors: ['red', 'yellow', 'orange'],
favNums: [1,2,3,]}];
// javascript obj
const familyObj = {
dadAge : 55,
momAge : 48,
ramAge : 29,
bhavaniAge : 27,
}
// person Data
const ramsBio = {
name: 'ram',
age: 23,
address: '318 west, tx, 78634',
height: 6,
weight: 20,
favColors: ['red', 'yellow', 'orange'],
favNums: [1,2,3,]
}