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);

29th Aug 2019, 11:49 PM
CHRISTOPHER MADUABUCHUKWU MARTINS
CHRISTOPHER MADUABUCHUKWU MARTINS - avatar
1 Resposta
- 1
It's 6 check out in your debugger and see how it works
30th Aug 2019, 5:43 AM
Qudusayo
Qudusayo - avatar