JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive. Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user. JavaScript adds behavior to web pages. —
To start learning JavaScript you should take a look at some of the basics:
Variable means anything that can vary. JavaScript includes variables which hold the data value and it can be changed anytime.
JavaScript uses reserved keyword var to declare a variable. A variable must have a unique name. You can assign a value to a variable using equal to (=) operator when you declare it or before using it.
An operator performs some operation on single or multiple operands (data value) and produces a result. —
## Java Script Conditional:
Conditional statements control behavior in JavaScript and determine whether or not pieces of code can run. There are multiple different types of conditionals in JavaScript including: “If” statements: where if a condition is true it is used to specify execution for a block of code. —
For Write some text directly to the HTML document use document.write();*