Beginner

AngularJS ng-repeat

AngularJS allows me to loop through an array with the ng-repeat directive very easily. (The ‘Resources’ tab will show you the JavaScript and css files I’ve included and the ‘Result’ tab will show you the output.) Notice the ng-init initializes the array with a list of languages. ng-repeat=”language in languages” will loop through the languages […]

AngularJS ng-repeat Read More »

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