0

How to print hello world in javascript again, i forgot????

Can someone write the code, please

22nd Jan 2020, 3:03 AM
Zenith Ishrat
Zenith Ishrat - avatar
3 Réponses
22nd Jan 2020, 3:09 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
//with variable var hw = "hello world"; console.log(hw); document.write(hw,"<br>"); //without variable console.log("hello world"); document.write("hello world");
22nd Jan 2020, 3:07 AM
BroFar
BroFar - avatar
0
there are four ways, the only best way is to access the DOM elements and use innerText https://www.sololearn.com/post/112468/?ref=app https://code.sololearn.com/WKKkpq0efxai/?ref=app
22nd Jan 2020, 4:05 AM
Gordon
Gordon - avatar