...

/

Exercise: Pascal's Triangle

Exercise: Pascal's Triangle

Exercise in JavaScript to find a line of Pascal's triangle in the form of array.

We'll cover the following...

Task

A mathematician recently came across Pascal’s triangle. Pascal’s triangle is a triangular array of binomial coefficients. It looks like this.

The entry in the nthnth row and kthkth column of Pascal’s triangle is denoted as:

(nk){\displaystyle {\tbinom {n}{k}}} ...