Events in JavaScript

While Global Event Handlers are actually a Web API, accessing these events are central to Javascript's usefulness. These events mark points of interaction from the user or programmatic changes to the document. All of this can be harnessed via JavaScript to provide both functional and visual manipulations that create a   MORE q

By on April 3rd, 2020 in

JS Shortcuts

Here I look at the use of compound assignment operators, allowing concise math operations. It provides examples, such as x += y, which simplifies expressions. Additionally, it introduces the modulus operator for finding remainders and checking even or odd numbers. Post-increment and pre-increment operators are also described for variable evaluation timing.  MORE q

By on April 3rd, 2020 in

Objects in JavaScript

Objects are the center of JS programming. Methods and Properties can be attached. Objects are lists or collections of properties For each property, Objects always have a name that is a STRING and a value that can be a STRING, NUMBER or FUNCTION Under the hood: When creating an object or adding a property, the JS engine invokes the [put] method to assign a place in memory. When changing a property, the JS engines invokes the [set] method for changing the  MORE q

By on March 31st, 2020 in

JS Types

JavaScript has several built-in data types: String (text), Number (numeric values), Boolean (true/false), null (intentional absence), undefined (no value assigned), and Symbol (unique identifiers). Each type has specific behaviors and uses. For instance, Boolean evaluates conditions, while Symbol prevents property conflicts in objects.  MORE q

By on March 30th, 2020 in

How JavaScript Works

The JavaScript runtime environment consists of the JavaScript engine, Web APIs, Job Queue, Callback Queue, and Event Loop. The engine includes the Memory Heap and Call Stack, which processes code synchronously. Asynchronous operations are managed by the Event Loop, which handles tasks from Job and Callback Queues, ensuring efficient execution.  MORE q

By on March 30th, 2020 in

Comparisons in JavaScript

JavaScript has many ways to compare data. There are both strict and pliant comparisons avaialable Strict comparisons require the type of the data as well as the values be identical. For this, a number can only match a number and they must have the same value, a string only matches another string with the same value, etc. The more pliant comparisons check for a match to the data value, and does not care about the  MORE q

By on March 27th, 2020 in

Error Handling & Debugging

JavaScript is decently equipped to get a handle on errors that may arise. The first tool we should know is the Error Object. const myError = new Error('Oh No!'); throw myError.name + myError.message + myError.stack; Built-in Error Objects are numerous. A complete  MORE q

By on March 27th, 2020 in

JavaScript Terms to Know | Basic & Advanced

Basic JS Terms Attribute An attribute is a piece of information that controls access to a property More detail→ Conditional A conditional statement will be some variation of an if-then statement. These statements allow an application to test whether a particular condition is true and then take different action for a return of true or…  MORE q

By on March 27th, 2020 in

Conditional Statements

Conditional Statements test a claim and then either run a block of code or pass to the next step. Ultimately, these statements provide dynamic programmed responses where data can be set programmatically or change, like in the case of user input, and the JavaScript code can respond in different programmed ways. Conditional Statements: if - When a condition is met, run a block of code. else - When a condition is not met in an if statement, run a different bloc   MORE q

By on March 22nd, 2020 in

Post Navigation