Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to show 1 to 10 odd numbers in javascript

let oddNumbers = 1;
while(oddNumbers < 10){
  console.log(oddNumbers);
  oddNumbers = oddNumbers + 2;
}
 
PREVIOUS NEXT
Tagged: #show #odd #numbers #javascript
ADD COMMENT
Topic
Name
8+1 =