Why is code 1 not producing 10 rows of circles on my browser? But the code(1) is producing the output : The code 1 is working and giving 10 lines of circles of radius 10.

The code 2 is not working as expected, it just gives a single line of circles of radius 10. 

I think the logic is correct but still there is something i am most probably missing when it comes to paper js documentation. Please help me out. This is bugging me. *No pun intended :p*


  [1]: https://i.stack.imgur.com/inVh9.png