-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatatupe_prim_rep.js
More file actions
38 lines (34 loc) · 896 Bytes
/
Copy pathdatatupe_prim_rep.js
File metadata and controls
38 lines (34 loc) · 896 Bytes
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
//Primitive data types
console.log("Welcome to learning 1");
//string
constname = "Arunesh";
console.log("my name is " + name);
console.log("Data type is" + (typeof name));
//numbers
const marks = 34;
console.log("Data type is" + (typeof marks));
//Boolean
const isDriver = true;
console.log("Data type is" + (typeof isDriver));
//null
const nullvar = null;
console.log("Data type is" + (typeof nullvar));
//undefined
const undef = undefined;
console.log("Data type is" + (typeof undef));
//reference data types
//arrays
const myarr = [1, 2, 3, 4, false, 'string'];
console.log("Data type is" + (typeof myarr));
//object literals
const stMarks = {
arunesh: 84,
subham: 89,
}
console.log("data type is " + (typeof stMarks));
console.log(stMarks)
function findname() {
}
console.log(typeof findname)
const date = new Date();
console.log(typeof date)