How to Print Patterns of Numbers and Stars in JavaScript - JavaScript Tutorial 55

ChidresTechTutorials
ChidresTechTutorials
19.1 هزار بار بازدید - 7 سال پیش - Notes for You:: Print Patterns
Notes for You:: Print Patterns of Numbers and Stars in JavaScript

Example Code 1:

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:
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.




=========================================

Follow the link for next video:
JavaScript Tutorial 56 - Print pyramid patterns in JavaScript | Printing patterns in JavaScript
How to Print Pyramid Patterns of Numb...

Follow the link for previous video:
JavaScript Tutorial 54 - Different Types of Loops in JavaScript
JavaScript Types of Loops | Different...

=========================================

JavaScript Tutorials Playlist:-
JavaScript Tutorials

=========================================
Watch My Other Useful Tutorials:-

jQuery Tutorials Playlist:-
jQuery Tutorials

jQuery UI Tutorials Playlist:-
jQuery UI Tutorials

Bootstrap Tutorials Playlist:-
Bootstrap Tutorials

=========================================

► Subscribe to our YouTube channel:
chidrestechtutorials  

► Visit our Website:
https://www.chidrestechtutorials.com

=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
7 سال پیش در تاریخ 1396/06/05 منتشر شده است.
19,175 بـار بازدید شده
... بیشتر