0
Give the output of this JS code and explain.
var str = "abc"; var arr = [123]; str.length = 2; arr.length = 2; console.log(str.length + arr.length);
1 Resposta
- 1
It's 6
check out in your debugger and see how it works
var str = "abc"; var arr = [123]; str.length = 2; arr.length = 2; console.log(str.length + arr.length);