Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript while loops

const ourArray = [];
let i = 0;

while (i < 5) {
  ourArray.push(i);
  i++;
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #javascript #loops
ADD COMMENT
Topic
Name
3+1 =