Itβs my understanding that you should use const by default for readability. The idea is if another dev is looking at your code and sees βletβ they will know that variable will be reassigned later in the code. Makes the program easier to understand at a glance.
47
u/MrMimmet Oct 26 '20
You should really avoid using 'var' to declare your variables.