I want to change the values of elements of an array to the same number. For eg:
let arr = [1,2,3]
arr[0] = 0;
arr[1] = 0;
arr[2] = 0;
Is there any other method to do this?
I want to change the values of elements of an array to the same number. For eg:
let arr = [1,2,3]
arr[0] = 0;
arr[1] = 0;
arr[2] = 0;
Is there any other method to do this?