Hi @Maya,
Sorry for the delay in getting back to you on this.
Youâve made a great attempt, and I can see that youâve worked hard at these exercises! 
Looping a Triangle
To get it to work with document.write()
you just need to add a line break HTML tag to each row of hashes, so that the next row is printed on the next line.
document.write(toPrint + "<br>");
Your other document.write()
(to display the row number) also now works; although I would start the first loop with âvar row = 1
â so that the first row is displayed as ârow number 1â (instead of ârow number 0â). You also then get the 7 rows (not 8) that the exercise asks for.
You didnât need to add the <br>
tag with console.log()
, because each time it is called it automatically logs to the next line in the console.
FizzBuzz
You have some problems with the flow of your conditional execution:
- For numbers divisible by 3 only, and numbers divisible by 5 only, you are printing both âFizzâ or âBuzzâ AND the number.
- For numbers divisible by 3 AND 5, you are printing âFizzâ AND âBuzzâ AND âFizzBuzzâ.
Instead, you should be always printing EITHER âFizzâ, OR âBuzzâ, OR âFizzBuzzâ, OR the number.
You have all the Boolean expressions coded correctly, you just need to look again at:
- The actual control flow directed by the keywords
if
and else
(and you also need to use else if
) so that only one statement is executed for each loop.
- The order of the conditional statements, which is also important.
Have a go at resolving this yourself, and let us know if you need any more help.
Chessboard
Yes, these exercises are a real challenge!
Thatâs fine, and actually what you should be doing if youâre not sure how to solve it on your own. Itâs also fine if you need to take a look at the solutions before being able to complete it. As long as you give it your best shot first. Thatâs the most important thing â to really spend time wrestling with it yourself first. Then, if you had to get some help, before moving on, make sure you analyse the solution(s), and kind of work backwards from there. This is a really important stage in the learning process. You can learn a lot by working out what the solution does and how it does it, and also how to go about âbridging the gapâ from what you managed to do (or not) on your own. As long as you understand the code youâre finally posting, thatâs job done! 
Another good learning technique to use is to then try the exercise again from scratch without looking back at the answer (like a memory test). You can also try to do this after having left it for a certain period of time (say, the next day, then after a few days, then a week etc. etc.) This builds up longer-term retention.
Keep on learning! Youâre making great progress! 