FACN8 / Pokemon

0 stars 1 forks source link

use ES6 javascript for professionalism #34

Open okarem opened 4 years ago

okarem commented 4 years ago

https://github.com/FACN8/Pokemon/blob/7fd23752c34b9099b7ae0da919ce1112103e249f/src/components/battle_stats.js#L18 https://github.com/FACN8/Pokemon/blob/7fd23752c34b9099b7ae0da919ce1112103e249f/src/components/battle_stats.js#L21

use let instead of var

ivan-1kh commented 4 years ago

and the use of the ES5 'function' keyword instead of the newer arrow function '( ) => { }'

ghost commented 4 years ago

good suggestion, we will try to implement it now