JavaScript Algorithm: Looping A Triangle

Photo by Tamanna Rumee on Unsplash

Today we are going to write a program that will console log a half triangle. The half triangle will need to be seven rows tall and consist of nothing but the # character.

Here is an example:

#
##
###
####
#####
######
#######

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Erica N

Erica N

An illustrator that writes humor and satire about everything and nothing at the same time. Like my stories? Leave a tip at: https://ko-fi.com/ofcuriousbirds