-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
51 lines (51 loc) · 1.13 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
"use strict";
//camelCase
let myName = "Qaimudin Khuwaja";
console.log(myName);
//snake_case
let fvrt_food = "Mutton Biryani";
console.log(fvrt_food);
//PascalCase
let FvrtGame = "Pubg";
console.log(FvrtGame);
//Cheak Data Types
//String
let country = "Pakistan";
console.log(typeof (country));
//Number
let myNum = 15;
console.log(typeof (myNum));
//Boolean
let password = "cdef456";
console.log(password == "cdef456");
console.log(password != "cdef456");
console.log(password != "cdef4567");
console.log(password == "cdeef456");
console.log(typeof (password == "cdef456"));
//any
let num = 123;
let fname = "Faraz";
let code = "123abc";
console.log(typeof (num));
console.log(typeof (fname));
console.log(typeof (code == "123abc"));
//Concatination
let num1 = 5 + 8;
console.log(num1);
let num2 = "5+8";
console.log(num2);
let num3 = 5 + 8;
console.log("num1");
//Arthematics Operations
let num4 = 72 + 5;
let num5 = 73 + 5;
console.log(num4 - num5);
let numb = 6 * 2;
let numb1 = 12 / 6;
console.log(numb + numb1 * numb);
let number = 8;
let number1 = 9;
console.log(number > number1);
let number2 = 10;
let number3 = 14;
console.log(number2 < number3);