JavaScript is the programming language of HTML and the Web.
1. HTML- the content of web pages
2. CSS - the layout of web pages
3. JavaScript - behavior of web pages
JavaScript was invented by Brendan Eich in 1995,
Purpose:
JavaScript Can Change HTML Content
JavaScript Can Change HTML Attribute Values
JavaScript Can Change HTML Styles (CSS)
In HTML, JavaScript code must be inserted between <script> and </script> tags.
JavaScript can "display" data in different ways:
Writing into an HTML element, using innerHTML.
Writing into the HTML output using [Link]().
Writing into an alert box, using [Link]().
Writing into the browser console, using [Link]().
[Link]() method should only be used for testing.
For debugging purposes, you can use the [Link]()
variables are used to store data values.
A primitive data value is a single simple data value with no additional properties and methods.
The typeof operator returns "object" for objects, arrays, and null.