Some notes on converting CoffeeScript to ECMAScript2015 (ES6) for voxel.js-related projects
Add to beginning of file 'use strict';
Add variable declarations - usually const
, but sometimes let
More scoping clarity (explicit) with ES6 than CoffeeScript - other criticism of CoffeeScript scoping:
CoffeeScript's Scoping is Madness
Add semicolons - although arguably, standard says not, due to semicolon insertion,