Printing a heart? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Printing a heart?

How to do it in JScrpit? (UPDATE):im trying to get a deeper understanding how loops work.

17th Jun 2018, 12:39 AM
TheBuzzYonE
TheBuzzYonE - avatar
1 Answer
0
An easy way to do that would be to create several different document.write statements that all print a different output, with each statement representing each individual line of the heart. I would recommend checking out this code for reference - https://code.sololearn.com/cl8v9jPREvFg/?ref=app
17th Jun 2018, 12:49 AM
Faisal
Faisal - avatar