Coding Standards
This page contains the coding standards for the UnboundMNL Cooperatives Web App.
General
When developing the product, follow the ES6 standard. Both repositories are written in ES6.
Variable Declaration
All variables must be declared using the const
keyword. However, some variables may be declared using the let
keyword if they are to be reassigned later on.
Example
// Do this
const a = 1
// NEVER this
var a = 1
// Sometimes this
let a = 1
Equality Operators
All equality operators must be strict. This means that you must use ===
and !==
instead of ==
and !=
.
Example
// Do this
if (a === b) {
// ...
}
// NEVER this
if (a == b) {
// ...
}
Last modified: 21 December 2023