array => math.abc
my array is :
var arr = [9 , -2 , -10 ,2 ,-21]
and i want use math.abc to get 9 ,2 ,10 ,2 21 in new array. how can i do this ? :p
this is my code :
var n = 5;
var inputs = [1, -2, -8, 4, 5];
for (var i = 0 ; i === n ; i++){
Math.abs(inputs[i]);
console.log(inputs[i]);
}
but i don't know why it don't work :(
bruh why its hard to send questions ? :\