You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well done for using ES6 syntax in places; you've used arrow functions pretty consistently, with only one exception in validate.js where you've used the ES5 function keyword instead.
There are 9 places where you've used the var keyword to declare variables in your project. It's not best practice to declare variables this way, you should use let or const, depending on whether you need to reassign the variable's value or not.
Also, when you return a single statement from an arrow function, you don't need the curly brackets around the return statement. You can tweak your server function in server.js with this in mind.
The text was updated successfully, but these errors were encountered:
Well done for using ES6 syntax in places; you've used arrow functions pretty consistently, with only one exception in validate.js where you've used the ES5
function
keyword instead.There are 9 places where you've used the
var
keyword to declare variables in your project. It's not best practice to declare variables this way, you should uselet
orconst
, depending on whether you need to reassign the variable's value or not.Also, when you return a single statement from an arrow function, you don't need the curly brackets around the return statement. You can tweak your server function in
server.js
with this in mind.The text was updated successfully, but these errors were encountered: