Category Archives: JavaScript

All things JavaScript, JScript, jQuery, MooTools and client-side web development.

Brendan Eich Brendan Eich (born 1961) is a computer programmer and creator of the JavaScript programming language. He is the Chief Technology Officer at the Mozilla Corporation. In early 1995 Netscape hired Brendan Eich away from MicroUnity Systems Engineering, to … Continue reading

Posted in General, JavaScript | Tagged | Leave a comment

The use of quotation marks in JavaScript can get confusing. JavaScript supports both single quotes (‘) and double quotes (“). myString = ‘Hello World!’; myString = “Hello World!”; myString = “It’s time for tea.”; myString = ‘It\’s time for tea.’; … Continue reading

Posted in JavaScript | Tagged | 3 Comments

JavaScript has a built-in operator called typeof. As the name suggests, it tells you what the type of a particular variable is. For example, calling typeof 1 will tell you 1 is a number, typeof “hello” will tell you “hello” … Continue reading

Posted in JavaScript | Tagged | Leave a comment

There can be some confusion over difference between null and undefined in JavaScript. Basically null is a special value that means “no value”. null is usually thought of as a special object because typeofvnull returns ‘object’. On the other hand, … Continue reading

Posted in JavaScript | Tagged | Leave a comment