What does ... (spread operator) do in arrays?
Anonymous Quiz
11%
Copies elements
11%
Joins arrays
42%
Expands elements into a new array
32%
All above
4%
See answer
Whatβs the difference between == and ===?
Anonymous Quiz
88%
== compares by value, === by type + value
6%
=== is slower
4%
Theyβre the same
1%
See answer
What happens if you call setTimeout(fn, 0)?
Anonymous Quiz
21%
Executes immediately
72%
Waits for 0 ms but after current call stack
8%
Blocks main thread
How to stop event bubbling?
Anonymous Quiz
12%
event.block()
21%
event.stop()
59%
event.stopPropagation()
7%
See answer
β€1
What does const actually mean?
Anonymous Quiz
21%
Cannot be changed
26%
Cannot be reassigned
47%
Both
5%
See answer
β€5
π₯5β€1π1π1
What does document.querySelector() return?
Anonymous Quiz
37%
HTMLCollection
25%
NodeList
32%
First matching element
6%
See answer
β€1π1
console.log([1, 2, 3].filter(x => x > 1));
Anonymous Quiz
72%
[2, 3]
10%
[1, 2]
13%
true
4%
See answer
π1
How to clone an object correctly?**
let user = {name: 'John'}.
let user = {name: 'John'}.
Anonymous Quiz
11%
let copy = user;
54%
let copy = {...user};
29%
let copy = user.clone()
6%
See answer
π1
What will happen?
const arr = [1, 2, 3]; arr[10] = 5; console.log(arr.length);
const arr = [1, 2, 3]; arr[10] = 5; console.log(arr.length);
Anonymous Quiz
23%
3
30%
10
34%
11
13%
See answer
π1
Why does this Timer component cause a memory leak?
Anonymous Quiz
26%
setCount is wrong inside interval
13%
React canβt handle intervals
43%
Needs to use setInterval in useEffect
18%
See Answer
β€4π3π€1
What will the code log
Anonymous Quiz
31%
{ name: 'John' } then { name: 'Bob' }
11%
{} then { name: 'Bob' }
24%
{ name: 'John' } then { name: 'John' }
13%
Error will be thrown
21%
See answer
β€5π2
Continue posting challenges?
Anonymous Poll
98%
Yes
0%
No
2%
No, give it AI to solve ποΈοΈοΈοΈοΈοΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
π€―4β€1π₯1