Javascript problems πŸ‘¨β€πŸ’»
2.77K subscribers
51 photos
1 link
Download Telegram
❀22πŸ‘2πŸ€”2
What will be the output?
Anonymous Quiz
35%
8
30%
3
21%
Error
14%
See the answer
πŸ‘103πŸ€”18πŸ”₯16πŸ‘9❀6
Please open Telegram to view this post
VIEW IN TELEGRAM
Which method creates a new array without mutating the original one?
Anonymous Quiz
29%
.splice()
34%
.slice()
15%
.push()
13%
.sort()
9%
See answer 🀯
What will be the output here?
Anonymous Quiz
50%
10
18%
5
23%
Throws Error
9%
See Answer
πŸ”₯5❀1πŸ‘1πŸ‘Ž1
What does document.querySelector() return?
Anonymous Quiz
38%
HTMLCollection
25%
NodeList
31%
First matching element
7%
See answer
❀1πŸ‘1
console.log([1, 2, 3].filter(x => x > 1));
Anonymous Quiz
73%
[2, 3]
9%
[1, 2]
13%
true
5%
See answer
πŸ‘1
How to clone an object correctly?**

let user = {name: 'John'}.
Anonymous Quiz
11%
let copy = user;
56%
let copy = {...user};
27%
let copy = user.clone()
6%
See answer
πŸ‘1
What will happen?

const arr = [1, 2, 3]; arr[10] = 5; console.log(arr.length);
Anonymous Quiz
24%
3
29%
10
34%
11
13%
See answer
πŸ‘1