Skip to content

Instantly share code, notes, and snippets.

@raspher
Last active May 3, 2018 15:39
Show Gist options
  • Save raspher/b10ee28a1715c12f2ea20611a57db689 to your computer and use it in GitHub Desktop.
Save raspher/b10ee28a1715c12f2ea20611a57db689 to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/bezeciq
for(var x=0, word="";x<7;x++){
word=word + "x";
console.log(word);
}
console.log(word);
<!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 x=0, word="";x<7;x++){
word=word + "x";
console.log(word);
}
console.log(word);
</script>
<script id="jsbin-source-javascript" type="text/javascript">for(var x=0, word="";x<7;x++){
word=word + "x";
console.log(word);
}
console.log(word);</script></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment