|
2 | 2 |
|
3 | 3 | I post daily multiple choice JavaScript questions on my [Instagram](https://www.instagram.com/theavocoder), which I'll also post here!
|
4 | 4 |
|
5 |
| -From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview! :muscle: :rocket: I update this repo weekly with new questions. Last update: <a href=#20190629><b>June 29th</b></a> |
| 5 | +From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview! :muscle: :rocket: I update this repo weekly with new questions. Last update: <a href=#20190707><b>July 7th</b></a> |
6 | 6 |
|
7 | 7 | The answers are in the collapsed sections below the questions, simply click on them to expand it. Good luck :heart:
|
8 | 8 |
|
@@ -1664,7 +1664,7 @@ However, we created a global variable `y` when setting `y` equal to `10`. This v
|
1664 | 1664 |
|
1665 | 1665 | ---
|
1666 | 1666 |
|
1667 |
| -###### <a name=20190629></a>55. What's the output? |
| 1667 | +###### 55. What's the output? |
1668 | 1668 |
|
1669 | 1669 | ```javascript
|
1670 | 1670 | class Dog {
|
@@ -1963,7 +1963,7 @@ The unary operator `++` _first returns_ the value of the operand, _then incremen
|
1963 | 1963 |
|
1964 | 1964 | ---
|
1965 | 1965 |
|
1966 |
| -###### 64. What's the output? |
| 1966 | +###### <a name=20190707></a>64. What's the output? |
1967 | 1967 |
|
1968 | 1968 | ```javascript
|
1969 | 1969 | const value = { number: 10 };
|
@@ -2152,8 +2152,8 @@ console.log(name.padStart(2))
|
2152 | 2152 | ```
|
2153 | 2153 |
|
2154 | 2154 | - A: `"Lydia Hallie"`, `"Lydia Hallie"`
|
2155 |
| -- B: `" Lydia Hallie"`, `" Lydia Hallie"` |
2156 |
| -- C: `" Lydia Hallie"`, `"Lydia Hallie"` |
| 2155 | +- B: `" Lydia Hallie"`, `" Lydia Hallie"` (`"[13x whitespace]Lydia Hallie"`, `"[2x whitespace]Lydia Hallie"`) |
| 2156 | +- C: `" Lydia Hallie"`, `"Lydia Hallie"` (`"[1x whitespace]Lydia Hallie"`, `"Lydia Hallie"`) |
2157 | 2157 | - D: `"Lydia Hallie"`, `"Lyd"`,
|
2158 | 2158 |
|
2159 | 2159 | <details><summary><b>Answer</b></summary>
|
|
0 commit comments