FACN3 / swearUrban

an autocomplete search app
0 stars 0 forks source link

Inconsistent use of var declarations #30

Open Karyum opened 6 years ago

Karyum commented 6 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

Karyum commented 6 years ago

also here you are using an arrow function but the rest of the backend is just a regular function() {}