A simple example of JavaScript hello world is given below. You need to place it inside the body tag of HTML.