Created
August 11, 2020 21:50
-
-
Save alexandreaquiles/7983b2af1157a7ba456112ea33568f8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var i = 0; | |
while(i < 7){ | |
var j = 0; | |
while(j <= i){ | |
document.write("#"); | |
j++ | |
} | |
i++ | |
document.write("<br>"); | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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