Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop n times js

n=10
for (let i = 0; i < n; i++) { 
  console.log("Hi!")
}
//Note that you can directly put the number after the < sign.
 
PREVIOUS NEXT
Tagged: #loop #times #js
ADD COMMENT
Topic
Name
8+6 =