Week 2 - Session 1 - JavaScript Fundamentals

A JavaScript program is essentially a list of instructions for the computer to follow in order to achieve whatever useful thing the program is required to do. Each instruction in a program is called a statement. In JavaScript, statements are composed of values, operators, expressions and keywords, and end with a semicolon.

Values: there are two types of values in JavaScript, literal values (Numbers, Strings, Booleans, Arrays, Objects), and variable values (var, const, and let).

Operators: these are special symbols that are used to combine two values and create a new one. Arithmetic, String, Logical, Comparison, and Assignment operators.

Expressions: an expression is a combination of literal values, variables, and operators, which evaluates to a single value.

Keywords: these are basically reserved words that perform special actions and cannot be used as variable names.

JavaScript statements can be grouped together in blocks using curly braces ({}). Blocks are normally found in functions, if-statements, and loops.

Introduction to JavaScript on Codecademy - https://www.codecademy.com/learn/introduction-to-javascript

Popular posts from this blog

Week 9 to 12 - Learning with MCR Codes

Week 8 - Session 1 - JavaScript in the Browser

Week 9 - Session 1 - The Internet, the Web, HTTP