JavaScript was created by Brendan Eich in 1995. He developed it while working at Netscape Communications Corporation. The language was initially called Mocha, then renamed to LiveScript, and finally to JavaScript. The first version of JavaScript was included in Netscape Navigator 2.0, which was released in December 1995.
A computer program is a list of instructions to be executed by a computer. In a programming language, these programming instructions are called statements. A JavaScript program is a list of programming statements.
JavaScript statements are composed of Values, Operators, Expressions, Keywords, and Comments.
An expression is a combination of values, variables, and operators, which computes to a value The computation is called an evaluation.
The JavaScript syntax defines two types of values-
Fixed values (Literals) and Variable values (Variables)JavaScript can display data in different ways -
innerHTML, document.write(), window.alert(), console.log(), window.print()var = Declares a variable.
let = Declares a block variable.
const = Declares a block constant.if = Marks a block of statements to be executed on a condition.
switch = Marks a block of statements to be executed in different cases.
for = Marks a block of statements to be executed in a loop.
function = Declares a function.
return = Exits a function.
try = Implements error handling to a block of statements.JavaScript uses the keywords var, let and const to declare variables. Arithmetic operators ( + - * / ) to compute values.
Assignment operator ( = ) to assign values to variables.// Single Line Commnet
/*
Multi Line
Comments
*/
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
It was beginner-friendly, keep writing.
Best of luck.
Thanks brother!