My First steps into JS.
Wrote the below simple While Loop to produce triangles. Will continue to delve into JS.
#
##
###
####
#####
######
#######
########
#########
##########
Wrote the below simple While Loop to produce triangles. Will continue to delve into JS.
let triangle= "#";
while (triangle.length <= 10){
console.log(triangle);
triangle = triangle + "#";
}
No comments:
Post a Comment