Skip to content

Instantly share code, notes, and snippets.

@hiun
Created January 13, 2014 09:41
Show Gist options
  • Save hiun/8397211 to your computer and use it in GitHub Desktop.
Save hiun/8397211 to your computer and use it in GitHub Desktop.
namer demo version 0.1
<!DOCTYPE html>
<html>
<body>
<script>
/*
var cars=["BMW","Volvo","Saab","Ford"];
for (var i=0;i<cars.length;i++)
{
document.write(cars[i] + "<br>");
}
*/
</script>
<script>
//split and get array data
//var array;
var array=["app","box","snap"];
for (var i=0; i<array.length; i++) {
for (var j=0; j<array.length; j++) {
document.write(array[i] + array[j] +"<br>");
}
document.write("<br><br>");
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment