0

problem

help! why can explain to me how does it code work? Thanks const arr = Number(200, 200); if(arr[0] == 200 || arr[1] == 200) { console.log(arr.push(2.0, 200)); } else if (arr === 200){ console.log(arr.toString(arr.length)); } else { console.log(arr.push(200, 2.0)); }

11th Nov 2022, 4:26 PM
🕸carpe diem🕸
🕸carpe diem🕸 - avatar
3 Answers
+ 2
I'm trying to understand how it works
11th Nov 2022, 6:06 PM
🕸carpe diem🕸
🕸carpe diem🕸 - avatar
0
🕸carpe diem🕸 Use const arr = [200, 200]; instead of const arr = Number(200, 200);
11th Nov 2022, 5:41 PM
SoloProg
SoloProg - avatar
0
🕸carpe diem🕸 , Hope this helps you understand how it works. https://www.sololearn.com/compiler-playground/WLyRD3o3kP6J
11th Nov 2022, 7:28 PM
SoloProg
SoloProg - avatar