var arr = [1, 2, 3];
arr.length = 0;
var arr
- declare test arrayarr.length = 0
- will clear array by setting length property to zero
link_youtube: https://youtu.be/Iq0u6fe9spo
var arr = [1, 2, 3];
arr.length = 0;
var arr
- declare test arrayarr.length = 0
- will clear array by setting length property to zerolink_youtube: https://youtu.be/Iq0u6fe9spo