iterami/Docs.htm/Standards/JavaScript
- All files must start with 'use strict';
- Dot notation must be used for all: args, IDs, properties, and variables.
- For..of loops should be used instead of for(;;) loops.
- Functions must be in alphabetical order.
- Functions with a fixed limited number of required args should pass them directly and unmodified.
- Functions with many args or args with default values should utilize a destructured args object.
- Global object usage should be done via "globalThis".
- Global variables should be alphabetically included at the bottom of the file.
- String contain checks should be done via "~string.indexOf(target)".
- Swapping variables should be done via destructuring, such as "[a, b] = [b, a];".
- Trycatch should exclude the catch "(error)" if it is not used.
- Use button element instead of input buttons.
- Variables are "const" by default and only changed to "let" if required.