What is JavaScript
JavaScript (js) is a lightweight object-oriented programming language that is used by several websites for scripting the webpages. It is an interpreted, full-fledged programming language that enables dynamic interactivity on websites when applied to an HTML document. It was introduced in the year 1995 for adding programs to the webpages in the Netscape Navigator browser. Since then, it has been adopted by all other graphical web browsers. With JavaScript, users can build modern web applications to interact directly without reloading the page every time. The traditional website uses js to provide several forms of interactivity and simplicity.
JavaScript Tutorial - What is the use of JavaScript?
JavaScript is the world's most popular programming language. JavaScript is the programming language of the Web.
Examples
<!DOCTYPE html>
<html>
<body>
<h2>My First JavaScript</h2>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="demo"></p>
</body>
</html>
Why Learn JavaScript?
JavaScript is among the most powerful and flexible programming languages of the web. It powers the dynamic behavior on most websites, including this one.
Places to put JavaScript code
- Between the body tag of html
- Between the head tag of html
- In .js file (external javaScript)

0 Comments
"Please don't put any links in the comments"