forked from truecodersio/JavaScript_Operators
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
40 lines (31 loc) · 790 Bytes
/
app.js
File metadata and controls
40 lines (31 loc) · 790 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
// Exercise 1
console.log("EXERCISE 1:\n==========\n");
let a = 20;
let b = 4;
let add = a+b;
let minus = a-b;
let multiply = a*b;
let dividing = a/b;
console.log(a, b , add, minus, multiply, dividing);
// Exercise 2
let num = 11;
let str = "11";
let str2 = "eleven";
let isPresent = true;
let firstName = "Frodo";
let lastName = "Baggins";
console.log(num + str, num + str2, num + isPresent, isPresent + str, firstName + lastName);
// Exercise 3
let val = 5;
let str3 = "5";
let str4 = "five";
let isPresent = false;
console.log (val == str3);
console.log (val === str3);
console.log (!isPresent);
console.log (“eleven” == str4 && val >= str3);
console.log (value0 == false);
console.log (0 === false);
console.log (0 != false);
console.log (0 !== false);
// YOUR CODE HERE