Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

keep records of number rolled in array javascript

let colors = ['green', 'yellow', 'blue', 'purple'];
colors.splice(3);
console.log(colors); // ["green", "yellow", "blue"]
// deletes ['purple']
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #records #number #rolled #array #javascript
ADD COMMENT
Topic
Name
3+6 =