Beginner

JavaScript Primitive and Reference Variables

JavaScript has no rules for the type of data that a variable must hold. The type and value can change. JavaScript divides the variables into two major types: Primitive and Reference. Primitive variables are simple atomic pieces of data and Reference variables are objects of multiple values. The five primitive types are: Undefined, Null, Boolean,

JavaScript Primitive and Reference Variables Read More »

JavaScript Objects, Unary Operators and Logical Operators

JavaScript uses the increment (++) and decrement (–) on all data types. Putting the operator before the variable will change the value before the final evaluation of the statement. Putting the operator after the variable will change the value after the evaluation. Using the increment/decrement operator on a string first converts the value to a

JavaScript Objects, Unary Operators and Logical Operators Read More »

Scroll to Top