JavaScript
Table of contents
General Naming conventions Bundling Minification jQuery TypeScript Iterators (Loops) Pro...
General
Try to follow the AirBnB styling guide as far as possible. Sometimes you might have to deviate fr...
Naming conventions
Use camelCase when naming objects, functions, and instances. // bad const OBJEcttsssss = {}...
Bundling
Always use bundling to some degree in production. Commonly used vendor scripts should always be b...
Minification
Always minify in production. TODO : Example and how is minification done Use minified versio...
jQuery
Prefix jQuery object variables with a $. // bad const sidebar = $('.sidebar'); // good ...
TypeScript
Iterators (Loops)
Don’t use iterators. Prefer JavaScript’s higher-order functions instead of loops like for-in or...
Properties
Use dot notation when accessing properties. const luke = { jedi: true, age: 28, }; ...
Variables
Do not use const or let when targeting Internet Explorer without a transpiler. Always use cons...