Skip to content

Commit

Permalink
Merge pull request #1857 from bgoonz/master
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz authored Mar 13, 2022
2 parents fe90a65 + 7a7eef2 commit 20bd06e
Show file tree
Hide file tree
Showing 15 changed files with 1,085 additions and 6,851 deletions.
Binary file not shown.
12 changes: 6 additions & 6 deletions src/pages/blog/interview-questions-js-p2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6133,7 +6133,7 @@ function Vehicle(model, color, year, country) {
this.year = year;
this.country = country;
}
`
```
- Undefined
- 2: ReferenceError
Expand Down Expand Up @@ -6696,7 +6696,7 @@ if ([0]) {
} else {
console.log("I'm False");
}
`
```
- True, I'm True
- 2: True, I'm False
Expand Down Expand Up @@ -7123,7 +7123,7 @@ if (!typeof myString === 'number') {
} else {
console.log('It is a number!');
}
`
```
- SyntaxError
- 2: It is not a string!, It is not a number!
Expand Down Expand Up @@ -7644,7 +7644,7 @@ for (const value of myGenerator) {
for (const value of myGenerator) {
console.log(value);
}
`
```
- 1,2,3 and 1,2,3
- 2: 1,2,3 and 4,5,6
Expand Down Expand Up @@ -7706,7 +7706,7 @@ class Square {
this.area = value;
}
}
`
```
- 1: 100
- 2: ReferenceError
Expand Down Expand Up @@ -7894,7 +7894,7 @@ if (zero) {
} else {
console.log('Else');
}
`
```
- If
- 2: Else
Expand Down
Loading

0 comments on commit 20bd06e

Please sign in to comment.