Created
October 20, 2015 14:28
-
-
Save anjanaraveendra/f0a81235fc5d46c14cec to your computer and use it in GitHub Desktop.
This file contains 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 tempStr = "",prevNumber=1,i,depth=10; | |
for(i=0;i<depth;i++){ | |
tempStr = "";j=0; | |
while(j<= i){ | |
tempStr = tempStr + " " + prevNumber; | |
j++; | |
prevNumber++; | |
} | |
console.log(tempStr); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment