This repository was archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 229
Home
Boris Yankov edited this page Jul 9, 2014
·
26 revisions
We use JSHint to enforce certain coding principles.
Include at the beginning of each .js file:
'use strict';
More details on strict mode:
ECMAScript 5 Strict Mode, JSON, and More
It’s time to start using JavaScript strict mode
Variables that contain jquery selected elements should start with a '$'.
Not:
var due = $('#due');
Do:
var $due = $('#due');
Use always, to prevent global variables:
(function () {
// ... all vars and functions are in this scope only
// still maintains access to all globals
}());