angular

angular.bootstrap Explained in 3 Examples

By default, an Angular application is initialized automatically by loading the angular.js script and placing the ng-app directive to the root element of your application (e.g. <html> tag), like the following:

Explore Angular Courses Alternatively, you can also initialize your application manually if you need, using the angular.bootstrap() function. This is especially useful when […]

javascript logo

Insert, Remove, and Replace elements with Array.splice()

When you already have an existing array and need to make some edits, the Array.splice() method comes in handy. The splice() method allows you to INSERT, REMOVE, and REPLACE elements from a javascript array. Before jumping into any examples, let’s start by taking a look at the arguments passed into the splice() method. Array.splice(start_index, number_of_elements_to_remove); […]

javascript logo

Learn JavaScript Basics: Basic Features

Variables Variables are a means for holding on to or pointing to specific values. In JavaScript, variables are declared by using the var keyword and a valid variable name (the var keyword only needs to be used when first declaring a variable). A variable holding a numerical value might look like this:

A variable […]

javascript logo

Learn JavaScript Basics: Overview and Setup

What is this Course? This course is intended to be a beginner’s guide to the JavaScript programming language. It will cover basic features of JavaScript: operators, program flow-control, and loops; the document object model (DOM); as well as events, event listeners, and event functions. This course assumes that the learner has at least some familiarity […]