Write a JS function that prints a triangle of n lines of “$” characters like shown in the examples.
The input comes as a single number n (0 < n < 100).
Examples:
Input:
3
Output:
$
$$
$$$
Input:
2
Output:
$
$$
Input:
4
Output:
$
$$
$$$
$$$$
The output consists of n text lines like shown above.