You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -401,7 +401,7 @@ We said that `this.firstName` equals `"Sarah"` and `this.lastName` equals `"Smit
401
401
402
402
---
403
403
404
-
###### 12. What are the three phases of event propagation?
404
+
###### 13. What are the three phases of event propagation?
405
405
406
406
- A: Target > Capturing > Bubbling
407
407
- B: Bubbling > Target > Capturing
@@ -422,7 +422,7 @@ During the **capturing** phase, the event goes through the ancestor elements dow
422
422
423
423
---
424
424
425
-
###### 13. All object have prototypes.
425
+
###### 14. All object have prototypes.
426
426
427
427
- A: true
428
428
- B: false
@@ -439,7 +439,7 @@ All objects have prototypes, except for the **base object**. The base object has
439
439
440
440
---
441
441
442
-
###### 14. What's the output?
442
+
###### 15. What's the output?
443
443
444
444
```javascript
445
445
functionsum(a, b) {
@@ -459,7 +459,7 @@ sum(1, "2");
459
459
460
460
#### Answer: C
461
461
462
-
JavScript is a **dynamimcally typed language**: we don't specify what types certain variables are. Values can automatically be converted into another type without you knowing, which is called _implicit type coercion_. **Coercion** is converting from one type into another.
462
+
JavaScript is a **dynamimcally typed language**: we don't specify what types certain variables are. Values can automatically be converted into another type without you knowing, which is called _implicit type coercion_. **Coercion** is converting from one type into another.
463
463
464
464
In this example, JavaScript converts the number `1` into a string, in order for the function to make sense and return a value. During the addition of a numeric type (`1`) and a string type (`'2'`), the number is treated as a string. We can concatenate strings like `"Hello" + "World"`, so what's happening here is `"1" + "2"` which returns `"12"`.
465
465
@@ -468,7 +468,7 @@ In this example, JavaScript converts the number `1` into a string, in order for
468
468
469
469
---
470
470
471
-
###### 15. What's the output?
471
+
###### 16. What's the output?
472
472
473
473
```javascript
474
474
let number =0;
@@ -504,7 +504,7 @@ This returns `0 2 2`.
504
504
505
505
---
506
506
507
-
###### 16. What's the output?
507
+
###### 17. What's the output?
508
508
509
509
```javascript
510
510
functiongetPersonInfo(one, two, three) {
@@ -535,7 +535,7 @@ If you use tagged template literals, the value of the first argument is always a
535
535
536
536
---
537
537
538
-
###### 17. What's the output?
538
+
###### 18. What's the output?
539
539
540
540
```javascript
541
541
functioncheckAge(data) {
@@ -571,7 +571,7 @@ This is why both `{ age: 18 } === { age: 18 }` and `{ age: 18 } == { age: 18 }`
0 commit comments