hello world app in javascript. Write more code and save time using our ready-made code examples. modern javascript rules 2020 where to place script tag to attach js to html doc. How to print hello world in javascript. We will complete this program with using three ways: We then passed our variable to console.log, which printed the contents of parameterVariable. console. Otherwise, we print "Hello World" in the browser console. Inside the for loop we check if i is equal to 4. These comments hide JavaScript code from old browsers that didnt know how to process the