JavaScript | Working with Objects | angular
There are several ways to create objects in JavaScript. The following example gives a simple example to get started. let myData = new Object(); myData.name = "Adam"; myData.weather = "sunny";…
There are several ways to create objects in JavaScript. The following example gives a simple example to get started. let myData = new Object(); myData.name = "Adam"; myData.weather = "sunny";…
JavaScript arrays work like arrays in most other programming languages. The following example shows how you can create and populate an array. let myArray = new Array(); myArray[0] = 100;…
JavaScript defines a largely standard set of operators. I’ve summarized the most useful in the following Table. NameDescription ++, -- Pre- or post-increment and decrement +, -, *, /, %…
The let keyword is used to declare variables and, optionally, assign a value to the variable in a single statement. Variables declared with let are scoped to the region of…
In this post, I provide a quick tour of the most important basic features of the JavaScript language as they apply to Angular development. I don’t have the space to…
HTML elements tell the browser what kind of content they represent, but they don’t provide any information about how that content should be displayed. The information about how to display…