- 2

What is the output of this code?

const arr = ['3', '5', '8']; console.log( arr.find(x => x == 8).repeat(2) );

7th Nov 2022, 8:13 AM
Nida Arshad
Nida Arshad - avatar
3 odpowiedzi
+ 1
Because sometimes its may confused
7th Nov 2022, 11:47 AM
Nida Arshad
Nida Arshad - avatar
+ 1
Lesson learned; next time, ask for code explanation, not code output.
7th Nov 2022, 3:40 PM
Ipang
0
Everytime you want to know the output of a code, just run it.
7th Nov 2022, 1:27 PM
Emerson Prado
Emerson Prado - avatar