-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTypes.js
More file actions
executable file
·46 lines (41 loc) · 919 Bytes
/
DataTypes.js
File metadata and controls
executable file
·46 lines (41 loc) · 919 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
39
40
41
42
43
44
45
let age = 24;
console.log(typeof age);
let price = 100.5;
console.log(typeof price);
fullName = "Rudra";
console.log(typeof fullName);
isFollow = true;
console.log(typeof isFollow);
let x;
console.log(typeof x);
let y = null;
console.log(typeof y);
let a= BigInt("123");
console.log(typeof a);
let b= Symbol("Hello");
console.log(typeof b);
//Object-------------------------------//
const student = {
fullName: "fasgfsdfg",
age: 23,
cgpa: 8.9,
ispass: true
};
console.log(student);
console.log(typeof(student));
console.log(student["age"]);
console.log(student.age);
console.log(student.cgpa);
student["age"] = student["age"] + 5;
console.log(student.age);
student["fullName"] = "Rahul";
console.log(student.fullName);
//practice question-----------------//
const product = {
title: "Ball pen",
rating: 4,
offer: 5,
price: 270
};
console.log(product);
console.log("dffddsa" + 123);