language, used mainly for make your webpage more interactive. This
also helps in communicate data between the server and the browser.
development. It Also help in reduce the traffic of server side.
Netscape, a popular browser of that time.
Dialog boxes() – Display output using alert, prompt and confirm dialog
document.write() – Used to insert text onto your web page (this text
can actually be HTML elements).
innerHTML – Used to display output in a specific place or in a division
console.log() – Used to display output on the console of a browser.
A variable is basically an identifier for a value or simply the Variables
are used to store values or expressions
The way to use variables is by using the var keyword followed by the
In this line of code, I declared a variable called empName. Right now, It
doesn’t contain any value. So initialization is required here –
var empName = “Hernan”;