-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Expand file tree
/
Copy pathscript.js
More file actions
54 lines (44 loc) · 992 Bytes
/
script.js
File metadata and controls
54 lines (44 loc) · 992 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
let js = "amazing";
//if (js === "amazing") alert("JavaScript is FUN!");
//40 + 8 + 23 - 10;
console.log(40 + 8 + 23 - 10);
let firstName = "Dan";
console.log(firstName);
console.log(country);
console.log(continent);
console.log(population);
let population = 350000000;
let country = "United States";
let continent = "North America";
let language = "English";
console.log(population / 2);
console.log(population + 1);
console.log(population > 6000000);
console.log(population < 33000000);
console.log(
country +
" is in " +
continent +
", and its " +
population +
" people speak " +
language
);
const age = 12;
const isOldEnough = age >= 18;
if (age >= 18) {
console.log(`Sarah can start driving licence!`);
} else {
const yearsLeft = 18 - age;
console.log(`Sarah is too young, wait another ${yearsLeft} years.`);
}
let century;
const birthYear = 1994;
if (birthYear <= 2000) {
century = 20;
} else {
century = 21;
}
console.log(century);
*/