Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

python range in javascript

// Python:
for i in range(0, 3):
    print(i)

// JavaScript:
for ( i in Array.from({ length: 3 }) )
    console.log(i)
 
PREVIOUS NEXT
Tagged: #python #range #javascript
ADD COMMENT
Topic
Name
7+3 =