patzy
v4.0.1
Published
Used for printing patterns in JavaScript
Downloads
1
Readme
Used for printing patterns in JavaScript
Functions (v4.0.0 and above)
upperRightPyramid(num,pat)
Prints "num" number of lines "pat" half right pyramid pattern in console.
num is an integer and pat is a character
Example:
upperRightPyramid(3,*)
Output in console
*
**
***
upperLeftPyramid(num,pat)
Prints "num" number of lines "pat" half left pyramid pattern in console.
num is an integer and pat is a character
Example:
upperRightPyramid(3,*)
Output in console
*
**
***