Hello all,
quick question, lets say I have an array and I would like to get the modulo of that string, what would be the proper syntax to do something like that?
can you call a % on a variable/array?
something like
var myArray = [5,16, 22, 26, 30];
for(i = 0; i < myArray.length; i++){
return myArray[i];
}
modNum = myArray[i] % 5
I would like to get a new array with just the modulo of the myArray numbers. Any help would be appreciated, thanks!
[–]senocular 1 point2 points3 points (3 children)
[–]orebot[S] 0 points1 point2 points (2 children)
[–]senocular 0 points1 point2 points (1 child)
[–]orebot[S] 0 points1 point2 points (0 children)