Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS iterate over an array

const beatles = ["paul", "john", "ringo", "george"];

beatles.forEach((beatle) => {
  console.log(beatle.toUpperCase());
});
Source by kitt.lewagon.com #
 
PREVIOUS NEXT
Tagged: #JS #iterate #array
ADD COMMENT
Topic
Name
1+8 =