Skip to content

Commit 0a67756

Browse files
authored
DATA TYPES IN JS
1 parent b46ac9c commit 0a67756

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

data-types.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let num1 = 15;
2+
console.log("The type of num1 is " + typeof num1);
3+
let num2 = 15.5;
4+
console.log("The type of num2 is " + typeof num2);
5+
let str = "Pranav";
6+
console.log("The type of str is " + typeof str);
7+
let arr = [1, 2, 3, 4, 5, "None"];
8+
console.log("The type of arr is " + typeof arr);
9+
let obj = { name: "Pranav", age: 19, role: "Student" };
10+
console.log("The type of obj is " + typeof obj);

0 commit comments

Comments
 (0)