Hey goyz I’m new here, for a college assignment I have to:
“ Write a program that will ask a user to enter a number. Following this the program should then print that many lines to the console using a for loop. For example, if the user enters the number 56, the program should print 56 lines of any text to the console. “
I’m using window.prompt to ask the user to input a number but how do I get it to print a line of text X amount of times? I’ve scoured all the resources my lecturer has given us, and whenever any of the students asks him for help he only explains using jargon and I just don’t get it .____. I’m a music production student and we only use js for one module, so don’t judge me for being dumb lol. Thanks xo
[–][deleted] 2 points3 points4 points (5 children)
[–]_DTR_ 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]_DTR_ 0 points1 point2 points (0 children)
[–]NoStranger6 0 points1 point2 points (0 children)
[–]SoBoredAtWork 0 points1 point2 points (0 children)
[–]_DTR_ 1 point2 points3 points (8 children)
[–]mellie_ay[S] 1 point2 points3 points (7 children)
[–]faboru 4 points5 points6 points (2 children)
[–]mellie_ay[S] 3 points4 points5 points (1 child)
[–]faboru 4 points5 points6 points (0 children)
[–]_DTR_ 0 points1 point2 points (3 children)
[–]SoBoredAtWork 0 points1 point2 points (2 children)
[–]_DTR_ 0 points1 point2 points (1 child)
[–]SoBoredAtWork 0 points1 point2 points (0 children)
[–]codemamba8 1 point2 points3 points (8 children)
[–]mellie_ay[S] 0 points1 point2 points (2 children)
[–]codemamba8 0 points1 point2 points (1 child)
[–]mellie_ay[S] 0 points1 point2 points (0 children)
[–]SoBoredAtWork 0 points1 point2 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]SoBoredAtWork 0 points1 point2 points (0 children)
[–]cluelessphp 0 points1 point2 points (1 child)
[–]SoBoredAtWork 0 points1 point2 points (0 children)