Print patterns of numbers and stars:
Displaying stars in rows and columns using Javascript loops:
var rows=5;
var cols=5;
for(var i=1;i<=rows;i++)
{
for(var j=1;j<=cols;j++)
{
document.write(” * “);
}
document.write(“<br/>”);
}
Output:
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
========================================================
Follow the link for next video: https://youtu.be/ItOmYp9AKOA
Follow the link for previous video: https://youtu.be/3PAkBfYysio
========= For more benefits & Be up to date ===================
Subscribe to the channel:
https://www.youtube.com/chidrestechtu…
Like the Facebook fan page:
https://www.facebook.com/ManjunathChidre
Visit to Chidre’s Tech Tutorials website:
http://www.chidrestechtutorials.com
========================================================
Original source
8 responses to “JavaScript tutorial 72 – Print patterns of numbers and stars”
Chidre's Tech Tutorials – Best Educational YouTube channel
VISION: Helping students around the world to learn at free of cost
WEBSITE: https://www.chidrestechtutorials.com
SUBSCRIBE: https://www.youtube.com/chidrestechtutorials
brutha thank you for showing the debugger tool, soo helpful
This video is the best explanation on the subject. Thank you very much. I clearly understood the logic.
Thank you so much Sir! I had to watch this video twice to understand and in the second time i was clear of this process.
thank you for this, brother
thank you very much sir you are the best
,better explanation than my goddamn expensive tutor,
Good job…
I can't get the nested loops but I will keep watching this tut again and again 😊 thanks