0
Hello world display 100 times using function with java script
Java script
17 odpowiedzi
+ 4
You would need a loop that iterates to 100 and each time it prints your statement.
If you write a code and it doesn't work, please share it and someone can better help you.
+ 1
console.log( "Hello world\n".repeat(100) );
// Or
document.write( "Hello world<br>".repeat(100) );
// Or
for (let x=0; x<100; x++) console.log(`Hello world ${x+1}`);
+ 1
function NumberofPrint(num)
{
var i;
for(i=1;i<=num;i++)
{
console.log(i+" Hello World");
}
}
NumberofPrint (100);
+ 1
console.log() is a function to print something on the console window or Browser.
+ 1
abi abitha hope this help
function hello_world( ) {
for(var i = 1; i <=100 ; i+=1)
document.write("Hello world \n") ;
}
function printing ( ) {
return hello_world( ) ;
}
+ 1
Yeah sure, I'm complete my task. Thank you all
0
What is your question?
0
String hello world display 100 times
0
With java script using functions
0
That's not a question, that's a statement.
0
O/p Hello world in 100 times
0
Thank you
0
Please explain what is console. Log
0
I'm using
{
document. Write (str+,'<br>') ;
}
0
No problem you can use this too 👍
0
Mm OK
0
console.log() is a function to print something on the console in a browser