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)); }
3 Answers
+ 2
I'm trying to understand how it works
0
đ¸carpe diemđ¸
Use
const arr = [200, 200];
instead of
const arr = Number(200, 200);
0
đ¸carpe diemđ¸ , Hope this helps you understand how it works.
https://www.sololearn.com/compiler-playground/WLyRD3o3kP6J