Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

foreach loop in nodejs

const arr = ['cat', 'dog', 'fish'];
arr.forEach(element => {
  console.log(element);
});
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #foreach #loop #nodejs
ADD COMMENT
Topic
Name
6+4 =