Category: JavaScript

0

Javascript Modules and Variable Scopes

The Issue with Javascript Global Scope Anyone with some background in programming knows that global variables are bad. Javascript is no exception. In fact, managing variable scopes in Javascript is even worse. This is...

0

RequireJS Overview

RequireJS is an open source JavaScript library that has gained a lot of popularity in the recent years. The library is used to manage JavaScript dependencies and to prevent script loading order issues. It...

JavaScript DOM JQuery 0

Finding DOM Elements: JQuery vs. Native JavaScript

Finding Descendants in JQuery In JQuery, you can use the built in ‘find’ function to search trough query results and select specific descendants. The find function accepts a CSS selector and it is straight...

0

JQuery vs. Native JavaScript Operations

What made jQuery Popular? jQuery has become so popular lately, mainly due to it’s ease of use, robustness, small size (< 50kb). However, the secret to jQuery's success in my opinion is it's reliable...

Iteration in Native Javascript

Like JQuery, native JavaScript supports querying the DOM using standard CSS selectors. This is typically done using the function ‘document.querySelectorAll()’. However, unlike the JQuery selector function, this function return a NodeList object as opposed...

1

JavaScript Revealing Module Pattern

JavaScript has gotten very popular lately with the right rich web client applications. There a many JavaScript libraries available, both open source and commercial with very strong support from the community. However, as JavaScript...

0

The For…in Loop in JavaScript

Most developers coming from a C# or a Java background find the ‘for-in’ loop feature in JavaScript confusing. Perhaps the reason is that the ‘for-in’ loop is often confused by the ‘foreach’ loop in...

JavaScript 0

Equality in JavaScript

Objects in JavaScript are only equal to themselves Objects are not equal even if they have the same values There are two equality operators in JavaScript, ‘===’ and ‘==’ There are also two inequality...

0

JavaScript Functions

Functions in JavaScript are one the languages most powerful features. Unlike many other languages, functions can be passed around with ease and can be treated almost like variables. Functions can also be invoked in...