-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.json
40 lines (40 loc) · 1.28 KB
/
questions.json
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
{
"questions": [
{
"name": "hoisting",
"type": "list",
"message": "What is hoisting in JavaScript?",
"choices": [
"Moving all declarations to the bottom of the scope",
"Moving all declarations to the top of the scope",
"Moving all assignments to the top of the scope",
"Moving all functions to a separate scope"
],
"correctAnswer": "Moving all declarations to the top of the scope"
},
{
"name": "closure",
"type": "list",
"message": "What is a closure in JavaScript?",
"choices": [
"A way to close the browser window",
"A function that has access to variables in its outer scope",
"A way to end a loop",
"A method to close database connections"
],
"correctAnswer": "A function that has access to variables in its outer scope"
},
{
"name": "equality",
"type": "list",
"message": "What is the difference between == and === in JavaScript?",
"choices": [
"They are exactly the same",
"=== is faster than ==",
"== performs type coercion while === checks value and type",
"=== only works with numbers"
],
"correctAnswer": "== performs type coercion while === checks value and type"
}
]
}