Open Karyum opened 7 years ago
for example in the server file you have variables defined with var and some defined with const. all of them can be const for one example but also if you want a variable's value to change and you can't use a const just use let cause it's ES6
var
const
let
also here you are using an arrow function but the rest of the backend is just a regular function() {}
function() {}
for example in the server file you have variables defined with
var
and some defined withconst
. all of them can beconst
for one example but also if you want a variable's value to change and you can't use aconst
just uselet
cause it's ES6