Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript nested loop

for (let exercise = 1; exercise <= 3; exercise++) {
   console.log(`---------- Starting exercise ${exercise}`)

   for (let rep = 1; rep <= 6; rep++) {
      console.log(`Exercise ${exercise}: Lifting weight repetitition ${rep}`);
   }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #nested #loop
ADD COMMENT
Topic
Name
3+1 =