G1enB1and / Gallery

Picture Gallery with support for editing metadata such as tags
0 stars 0 forks source link

consistently use ES6 syntax in Javascript #75

Open G1enB1and opened 4 months ago

G1enB1and commented 4 months ago

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}