Skip to content

Instantly share code, notes, and snippets.

@dileephell
Created October 18, 2017 09:18
Show Gist options
  • Select an option

  • Save dileephell/fb3a91ac06bbd0e5f64e7b9a9c0c8500 to your computer and use it in GitHub Desktop.

Select an option

Save dileephell/fb3a91ac06bbd0e5f64e7b9a9c0c8500 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/talejagezu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
for(var i=1; i<=5; i++){
var a='';
for(var j=1; j<=i; j++){
var a = a+' '+ i;
}
console.log(a);
}
</script>
<script id="jsbin-source-javascript" type="text/javascript"> for(var i=1; i<=5; i++){
var a='';
for(var j=1; j<=i; j++){
var a = a+' '+ i;
}
console.log(a);
}</script></body>
</html>
for(var i=1; i<=5; i++){
var a='';
for(var j=1; j<=i; j++){
var a = a+' '+ i;
}
console.log(a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment