Now I am curious about which one I should be using. I find myself reaching for const most of the time. Let's be honest; 99% of the time I use const. let and I feel sinful, like there is something wrong in my code. How do you think about it?
Lol. Well, I think all works fine and you should use the one that suits your code perfectly, based on how complex your code is, the one that will give less stress and work efficiently should be the one you choose.
Goodluck.
Martin Sjåstad
Freelance Developer
Now I am curious about which one I should be using. I find myself reaching for
constmost of the time. Let's be honest; 99% of the time I use const.letand I feel sinful, like there is something wrong in my code. How do you think about it?