Checkout this video:
-Comments: These are used to add notes and reminders to your code, and are ignored by web browsers when your code is run. They start with // for single-line comments, or /* and */ for multi-line comments.
-Declarations: These are used to create variables, which are like placeholders for storing data values. A declaration starts with the keyword var, followed by the variable name and an equal sign (=). The value you want to store in the variable goes after the equal sign. For example: var myName = “John”; // This declares a variable called “myName” and gives it the value “John”.
-Statements & Expressions: Statements are instructions which tell the browser what to do, while expressions are units of code which produce a value when evaluated. For example, 3 + 4 is an expression which evaluates to 7, while alert(3 + 4) is a statement which pops up an alert box containing the text 7.
The Definition of a Programming Language
A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output. Programming languages are typically used to create programs that will run on a computer or other type of devices.
What Makes a Language a “Real” Programming Language?
To be honest, there’s no clear cut answer. It’s a bit like asking, “What is art?” Some people will tell you that art is anything that’s creative and expresses emotion. Others will say that art is only “real” art if it’s created with a certain medium, like paint on canvas. And still others will say that art is only “real” art if it follows certain rules or passes certain tests.
Similarly, there are different opinions on what makes a language a “real” programming language. Some people will say that a language is only a “real” programming language if it can be used to write programs that are efficient and error-free. Others will say that a language is only a “real” programming language if it can be used to write programs that are easy to read and understand. And still others will say that a language is only a “real” programming language if it can be used to write programs that are portable (i.e., they can run on different types of computers without modification).
Some people would say yes, because: