-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask_2.js
executable file
·41 lines (33 loc) · 968 Bytes
/
task_2.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
// Guess what answers you would get if you ran this in the Javascript Console.
//Once you have an answer to the questions then check them by copying them and running it in the console yourself line by line
//Evaluate the below:
something! //
3 + "65" // "365"
7 - "3" // 4
15 % 5 // 0
5 % 15 // 5
"Java" + "Script" // JavaScript
"Java" - "Script" // NaN
" " + " " // " "
" " + 0 // " 0"
true + true // true // 2
true + false // false // 1
false + true // false // 1
false - true // false // -1
3 - 4 // -1
//Evaluate the below comparisons:
4 >= 2 // true
6 === 2 // false
3 <= 1 // false
1 != 1 // false
"A" > "B" // false
"B" < "C" // true
"a" > "A" // true
"b" < "A" // false
true === false // false
true != true // false
// Make the string:
// "Go To Helsinki Business College," they said. "It'll Will Be "Fun"," they said.
// by using the + sign:
let statement = `"Go To Helsinki Business College," they said. "It'll will Be "Fun", they said.`