Archive for the ‘variables’ Category

Quick Tip: How JavaScript References Work

Posted on: No Comments
This article was originally published on Medium. TL;DR: There are NO pointers in JavaScript and references work differently from what we would normally see in most other popular programming languages. In JavaScript, it’s just NOT possible to have a r...

A Beginner’s Guide to JavaScript Variables and Datatypes

Posted on: No Comments
So you've decided to learn JavaScript, the programming language of the web. If it seems like a daunting journey ahead and you don't know where to start, here's a little secret: it doesn't take any special skill to learn how to program, and everyone st...

Quick Tip: How to Declare Variables in Javascript

Posted on: No Comments
When learning JavaScript one of the basics is to understand how to use variables. Variables are containers for values of all possible types, e.g. number, string or array (see data types). Every variable gets a name that can later be used inside your ap...

Quick Tip: Master Closures by Reimplementing Them from Scratch

Posted on: No Comments
This article was peer reviewed by Tim Severien and Michaela Lehr. Thanks to all of SitePoint's peer reviewers for making SitePoint content the best it can be! To say there are a lot of articles about closures would be an understatement. Most will expla...