Make sure you are consistent with what javascript you are using.
|
carinput.oninput= function(){ |
this is function declaration is es5
|
arrayres(value).then((response) =>{ |
and this one, 4 lines later, is es6.
A good rule is to use es5 on the front end and then es6 on the backend but if you want to use es6 everywhere that is probably ok (although front end stuff might break on some browsers).
Make sure you are consistent with what javascript you are using.
Carsdb/public/dom.js
Line 4 in 121fb4d
this is function declaration is es5
Carsdb/public/dom.js
Line 8 in 121fb4d
and this one, 4 lines later, is es6.
A good rule is to use es5 on the front end and then es6 on the backend but if you want to use es6 everywhere that is probably ok (although front end stuff might break on some browsers).