-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut3.js
40 lines (30 loc) · 823 Bytes
/
tut3.js
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
//Primitive data types
let name = 'Gauhar Nawab';
console.log('My String is ' + name);
console.log("data type is " + (typeof name));
// Numbers data type
let marks = 45;
console.log("Data type is " + (typeof marks));
// Boolean means true or False
let isDriver = true;
console.log(isDriver);
console.log("Data type is " + (typeof isDriver))
// Null data types
let nullVar = null;
console.log("Data type is " + (typeof nullVar))
// Undefined
let undef = undefined;
console.log("Data type is " + (typeof undef))
// Reference data types
myarr = [19, 43 , 42 , 42 , "String"];
console.log(myarr)
console.log("Data type is " + (typeof myarr));
//Object Literals
let stMarks = {
Saad: 45,
Aamir: 75,
Affan: 56
}
console.log(stMarks)
function findName() {
}