What is JavaScript?
JavaScript  is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

Nowadays JavaScript is quite popular among front end developers and back end developers because it is supported by the all modern web browsers.

JavaScript changes HTML attributes.
JavaScript changes client side behavior of HTML pages, it is embedded in or included from HTML pages and interact with the  DOM (Document Object Model) of the page.

History of JavaScript
JavaScript was developed by Brendan Eich at Netscape in May 1995.

Importance of JavaScript.
JavaScript is very important for web development it is used in web pages along with HTML markup language.
JavaScript allows dynamic content to get execute in web pages, all modern browsers adopted JavaScript and support it. 

JavaScript Example

Following example uses the method to "find" an HTML element (with id="demo") and changes the element content (innerHTML) to "Hello JavaScript!":

<p id="demo">JavaScript can change HTML content.</p>

<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>

Screenshot

Add Comments