My first reaction was of course: What is a Pascal Triangle? After reading wikipedia I said, ok let’s give it a try. At the end I didn’t make a function, but a whole ES6 class that renders it nicely to the browser.
Check out the codepen:
If you want to start using ES6 in your projects, check out this tutorial I wrote.