Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for loop shothand in js

const fruits = ["Apple", "Mango", "Peach"];

for (let i = 0; i < fruits.length; i++) {
  const fruit = fruits[i];
  console.log(fruit);
}
Source by thecodingcompany.hashnode.dev #
 
PREVIOUS NEXT
Tagged: #loop #shothand #js
ADD COMMENT
Topic
Name
1+6 =