Skip to content

Instantly share code, notes, and snippets.

@alexandreaquiles
Created August 11, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandreaquiles/7983b2af1157a7ba456112ea33568f8c to your computer and use it in GitHub Desktop.
Save alexandreaquiles/7983b2af1157a7ba456112ea33568f8c to your computer and use it in GitHub Desktop.
<script>
var i = 0;
while(i < 7){
var j = 0;
while(j <= i){
document.write("#");
j++
}
i++
document.write("<br>");
}
</script>
var i = 0;
while(i < 7){
var j = 0;
var texto = "";
while(j <= i){
texto += "#";
j++
}
i++
console.log(texto)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment