Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
Boris Yankov edited this page Jul 9, 2014 · 26 revisions

Coding guidelines

Strict Mode

Include 'use strict' in each .js file.

More details on strict mode:

ECMAScript 5 Strict Mode, JSON, and More

Strict Mode

It’s time to start using JavaScript strict mode

Naming conventions

  1. Variables that contain jquery selected elements should start with a '$'.

Not:

var due = $('#due');

Do:

var $due = $('#due');
Clone this wiki locally