Consistency:
There's a mix of ES6 module syntax and older script loading methods. Standardize on ES6 modules across the project for better maintainability.
Promise Syntax. const myPromise = new Promise(function(myResolve, myReject) ... ES6 allows function parameters to have default values
ES6 introduces very simple string templates along with placeholders for the variables. The syntax for using the string template is ${PARAMETER} and is used inside of the back-ticked string. let name = My name is ${firstName} ${lastName}
Consistency: There's a mix of ES6 module syntax and older script loading methods. Standardize on ES6 modules across the project for better maintainability.
Promise Syntax. const myPromise = new Promise(function(myResolve, myReject) ... ES6 allows function parameters to have default values
ES6 introduces very simple string templates along with placeholders for the variables. The syntax for using the string template is ${PARAMETER} and is used inside of the back-ticked string. let name =
My name is ${firstName} ${lastName}