I only use let and const. mostly const when i know that the variable value doesnt change in the future and let only when i know that the variable value change in the future.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
I use
const
as much as posible. I start usingconst
, and if at any point I need to change tolet
I will ealuate and If there is no other option I will change it. Otherwise I tend to prefer constants, as they force you to code in a safer manner.I also use flutter a lot, and there I use consts and final variables / methods most time as well.
I think it's ussualy a good practice to use const
In Kotlin I use
val
which is the same asconst
something like 95% of the time.