Created
June 20, 2014 20:15
-
-
Save yurrriq/9a40a4840500d6672be4 to your computer and use it in GitHub Desktop.
Lazily/cleverly print a horizontal rule
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
var n = 10 | |
var s = '========' | |
console.log(Array(n+1).join(s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment