Header add

In this article we will learn about how to Create a pyramid structure in JavaScript. 

To create a pyramid structure in JavaScript, you can use a for loop to build a string of characters and then log it to the console.

Here's an example of how you could create a pyramid with 5 rows:



Output

    *

   * *

  * * *

 * * * *

* * * * *


You May Also Like...

Post a Comment

Previous Post Next Post