-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
110 lines (48 loc) · 1.86 KB
/
scripts.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
///// 1. If you run the following code in the browser console or the VS Code console, what is the output?
console.log('Leaves are falling');
/* Start of your answer
End of your answer */
///// 2. How about this code? What is the output?
console.log(); // 'Leaves are falling'
console.log(/* 'Snow is freezing' */);
console.log('Leaves are growing');
/* Start of your answer
End of your answer */
///// 3. Write 3 valid JavaScript strings.
// Start of your code
// End of your code
///// 4. Edit the following lines to make each one a valid JavaScript string, using your knowledge of quotation marks and apostrophes (" and ') and the backslash (\).
// Start of your code
'They made a 'Hello World' website.'
'it doesn't matter'
"Organize your images in "project\images""
// End of your code
///// 5. Write 3 valid JavaScript numbers.
// Start of your code
// End of your code
///// 6. Write a valid Boolean value.
// Start of your code
// End of your code
///// 7. Write code that logs the data type of this value to the console.
// Start of your code
'999'
// End of your code
///// 8. Combine these strings into one string using an operator.
// Start of your code
'Leaves are' "falling" 'quickly'
// End of your code
///// 9. Write some math that evaluates to 29.5.
// Start of your code
// End of your code
///// 10. Use an operator to make the following line evaluate to `true` if the values are the same, and `false` if not.
// Start of your code
"Extemporaneous" 'Extemporanoeus'
// End of your code
///// 11. Use an operator to make the following line evaluate to `true` if the values are different, and `false` if they are the same.
// Start of your code
'Unconscionable' 'Unconcionable'
// End of your code
///// 12. Use an operator to make the following line evaluate to `true`.
// Start of your code
1000 999
// End of your code