To print a star pattern in JavaScript

javascript

you can follow this step

A single vertical line of stars:

A right-angled triangle of stars:

A square of stars:

show in output:

Anup Rajak

web developer at cotocus private limited company

Leave a Reply