• Thursday , 4 June 2020

JavaScript tutorial 72 – Print patterns of numbers and stars

Code Canyon



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

3d Ocean

Related Posts

8 Comments

  1. Chidre'sTechTutorials
    April 13, 2019 at 04:48

    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

  2. Bennett Marcelo
    April 13, 2019 at 04:48

    brutha thank you for showing the debugger tool, soo helpful

  3. Batur Serter
    April 13, 2019 at 04:48

    This video is the best explanation on the subject. Thank you very much. I clearly understood the logic.

  4. Sam Tube
    April 13, 2019 at 04:48

    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.

  5. Adhitya Poernama
    April 13, 2019 at 04:48

    thank you for this, brother

  6. TheMahdip
    April 13, 2019 at 04:48

    thank you very much sir you are the best
    ,better explanation than my goddamn expensive tutor,

  7. Hira Memon
    April 13, 2019 at 04:48

    Good job…

  8. Asel Hilu
    April 13, 2019 at 04:48

    I can't get the nested loops but I will keep watching this tut again and again 😊 thanks

Leave A Comment

You must be logged in to post a comment.