-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
33 lines (24 loc) · 781 Bytes
/
script.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
console.log("hello world!");
console.log(1 + 1);
console.log(133 * 28);
//Aufgabe 2: logs "Volker"
console.log("Volk" + "er");
// Aufgabe 3: "Fix the Code"
// Error! Make it work
//console.log("Hallo";
console.log("Hallo");
// Error! Make it work
//console.log("That doesn"t work");
console.log("That doesn't work");
// should return true. Change only the operator to fix it.
//console.log(50 + 2 > 52);
console.log(50 + 2 >= 52);
// should be false. Change only the operator to fix it.
//console.log("333" == 333);
console.log("333" === 333);
// Wrong result: Expected 555 not 855. Change only the operator to fix it.
//console.log(600 + 510 / 2);
console.log((600 + 510) / 2);
// Wrong result: Expected a Number 4 received 22
//console.log("2" + 2);
console.log(2 + 2);