0
How to print hello world in javascript again, i forgot????
Can someone write the code, please
3 Answers
+ 5
//Here course too
https://www.sololearn.com/learn/JavaScript/1124/
+ 2
//with variable
var hw = "hello world";
console.log(hw);
document.write(hw,"<br>");
//without variable
console.log("hello world");
document.write("hello world");
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