JavaScript Array For Loop
home
Run
screen_rotation
fullscreen
cloud_download
navigate_before
<html> <head> <title>Javascript Array</title> <script> function getAllItems(){ var myArray = ["10","11","20","23","98","101"]; for(i=0; i< myArray.length; i++){ if(i == 3){ continue; } document.write(myArray[i]+"<br>"); } } </script> </head> <body > <button type="button" onclick="getAllItems()">Get Array</button> </body> </html>
<html> <head> <title>Javascript Array</title> <script> function getAllItems(){ var myArray = ["10","11","20","23","98","101"]; for(i=0; i< myArray.length; i++){ if(i == 3){ continue; } document.write(myArray[i]+"<br>"); } } </script> </head> <body > <button type="button" onclick="getAllItems()">Get Array</button> </body> </html>
Copyrights@tutorialsplane.com