DrakeVorndran / Canvas_Cellular_Automata

3 stars 0 forks source link

Try let... #2

Closed soggybag closed 5 years ago

soggybag commented 5 years ago

https://github.com/DrakeVorndran/Canvas_Cellular_Automata/blob/8a6428f991cfbffcc225579f20b6139cec079892/app.js#L46

Overall your code looks pretty advanced. Looks like you have a lot of experience with JS. It also look like you are coding without a lot of the new features. You should stretch yourself by trying to incorporate as many of the newer features s you can.

You probably wrote this for loop on automatic. But this var could be a let. I think this is best practice these days, and will be in the future.