How to use for loop in JavaScript

How to use for loop in JavaScript JavaScript for loops iterate over each item in an array. JavaScript arrays are zero based, which means the first item is referenced with an index of 0. Referencing items in arrays is done with a numeric index There are different ways to loop over arrays in JavaScript, but it can be difficult choosing the right one. The Basic For Loop - <script> let myArray = [ "one" , "two" , "three" , "four" ] ; for ( let i = 0 ; i < myArray . length ; i ++ ) { console . log ( myArray [ i ] ) ; } </script> look console view... Follow On Social Media - Follow on Facebook - https://www.facebook.com/Front-End-Issue-487743404963344 Follow on instagram - https://www.instagram.com/frontendissue/ Follow on Twitter - https://twitter.com/IssueEnd Follow on Linkedin - ...