Spotted: Google Maps Car

This morning I was driving to work when I spotted an Orange Chevrolet Cobalt from California with a tall contraption on the roof. At the top was a camera with multiple lenses that covered a 360° area. By the base looked like a GPS receiver. I pulled up to the side of it and saw [...]

Difference Between an Argument and a Parameter

It is very common in the programming world for the terms argument and parameter to be used to convey the same meaning. Technically, however, there is a distinct difference between the two.
When a function is defined, the expected variables are listed in parentheses. These are parameters.
For example:
function GetSquarePerimeter(sideLength)
{
return 4*sideLength;
}
In the preceding example, sideLength is a [...]

JavaScript this Keyword

The ‘this’ keyword is indispensable in JavaScript object-oriented programming. When used in a JavaScript constructor function, ‘this’ refers to the object. Through the ‘this’ keyword, properties and methods can be assigned object, also known as a class. For example:
function Square(intSideLength)
{
this.sideLength = intSideLength;
}
In the preceding example the ‘this’ keyword is used to assign the variable ’sideLength’ [...]