Javascript while statement Counter

Description

Javascript while statement Counter

let counter = 1; // initialization

while ( counter <= 7 ) // repetition condition
{
   console.log( counter );//from   ww w. ja  v a2  s  . c  o m
   ++counter; // increment
}



PreviousNext

Related