Sierpinski triangle: Difference between revisions

→‎JS ES6: Added output
(→‎JS ES6: Extracting out some abstractions to named functions, for readability)
(→‎JS ES6: Added output)
Line 2,014:
return unlines(sierpTriangle(4));
})();</lang>
{{Out}}
<pre>
*
* *
* *
* * * *
* *
* * * *
* * * *
* * * * * * * *
* *
* * * *
* * * *
* * * * * * * *
* * * *
* * * * * * * *
* * * * * * * *
* * * * * * * * * * * * * * * *</pre>
 
Or constructed as 2^N lines of Pascal's triangle mod 2,
9,655

edits