Program to display Hello World
In this section, you will learn how you can easily display or print 'Hello World' message one or more then ones times in javascript. In this example, we print 100 times.
Let's try to create a simple program :
➤ Code : hello-world program;
<script>
//Enter your number here, as often as you want to print.
let times = 100;
for(let i = 1; i<=times; i++) {
console.log(i+". Hello word!");
}
<script>
Comments