Why JAVASCRIPT?
How to write and run Javascript
How to Add Javascript to Webpage
Representing data with values
Primitive Data Types
- Primitive Data Types
- Number Type
- String Type
- Boolean data type
- Undefined and null
- JavaScript Type Conversions
Operators
Expressions
Statements
- What are statements?
- Expression Statements
- Compound and Empty Statements
- Declaration Statements
- Conditional statements
- Loop statements
- Jump Statements
- Assignments
Arrays
HTML is not SMART enough to perform any logical work apart from displaying the given data in a better way.
- It can’t do math, in the example below it simply displayed what we typed.
- It can’t figure out if someone has correctly filled out a form.
- It can’t make decisions based on how a web visitor interacts with it.
<html>
<head>
<title>HTML can't math</title>
</head>
<body>
<h1>12+23</h1>
</body>
</html>
12+23
Basically, HTML lets people read text, look at pictures, watch videos, and click links to move to other web pages with more text, pictures, and videos. In order to add intelligence to your web pages so that they can respond to your site’s visitors, you need JavaScript. JavaScript lets a web page react intelligently. Javascript can create smart web forms that let visitors know when they’ve forgotten to include necessary information.
Javascript makes elements appear, disappear, or move around a web page.
In short, JavaScript lets you make your websites more engaging, effective, and useful.