JavaScript basics

Script tag To write a JavaScript you need to use script tag <script></script> but is recommended to place in the <head></head> tags of your html document Hello world in JavaScript Comments in…