Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created July 31, 2014 17:01
Show Gist options
  • Save Bijesse/ab8dbf5f242abbc409f3 to your computer and use it in GitHub Desktop.
Save Bijesse/ab8dbf5f242abbc409f3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>for loop count</title>
</head>
<body>
</body>
</html>
var fruits=["banana", "watermelon", "apple"];
for (var i=0; i<fruits.length; i=i+1)
{
console.log(fruits[i]);
}
console.log("loop terminated");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment