Output triangle using loops in javascript Test 12:26 javascript No comments Write a loop that makes seven calls to console.log to output the triangle like in the picture: for(var i=1; i<=7; i++){ for(var j=1; j<=i; j++) { document.write("#"); } document.write(" "); } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment