tutorial 2: introduction to programming elements: values, variables, and operators

watch it on YouTube

Notes

Definitions

literal values
discreet numbers or text that can be used in a program
variable
containter for storing values. Variables must be declared to be used.
validation
validation of variables refers to checking the type or format to ensure it is usable before attempting to use a variable in a program.
expression
values and operators with a result; expressions in JavaScript are governed by usual arithmatical rules (they are like regular math)
operators
symbols used in expressions that convey specific mathematical meaning

JavaScript Syntax Example

Declaring variables

var x = 8;
var y = 4.53454;
var z;

Expression with an operator

z = x + y;