-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask2.js
More file actions
26 lines (22 loc) · 763 Bytes
/
task2.js
File metadata and controls
26 lines (22 loc) · 763 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
let number = 42;
let name = "Hello";
let isStudent = true;
let nothing = null;
let notDefined;
let obj = { key: "value" };
let symbol = Symbol("id");
console.log(typeof number);
console.log(typeof name);
console.log(typeof isStudent);
console.log(typeof nothing);
console.log(typeof notDefined);
console.log(typeof obj);
console.log(typeof symbol);
let strNum = "123";
let num1 = Number(strNum);
console.log(num1 + 1);
let num2 = 456;
let str1 = String(num2);
console.log(str1 + "7");
console.log("5" * 2);
console.log("10" + 5);