Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript for..of iterate of an array</title> </head> <body> <script type="text/javascript"> // Press F12 - View result on Console Panel var arr = ['a','b','c']; for (var val of arr) { console.log(val); // result "a", "b", "c" } </script> </body> </html>
  Preview Arrow