The prompt is this:
Write a loop that makes seven calls to console.log
to output the following triangle:
'#
'##
'###
'####
'#####
'######
'#######
This is how I wrote my code
//Making A Triangle
let triangle = ‘#’ ;
do { (triangle + triangle);
} while (triangle.length !== 7);
console.log(triangle);
So far this just creates a continuous loop and it errors out the page eventually so I have to close the tab. I’ve tried to do variations with explicit but that also failed from how I wrote it.
Link to Prompts Program Structure :: Eloquent JavaScript