The Appropriate syntax to print “Hello World” in javascript is using the below syntax
document.write(“Hello World”)
In the above command document is the object in JS that represents the entire HTML document while write is the method with the help of which we are able to write it into an HTML page.