You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than using let to get the HTML elements, we should use "const" instead so that in the codebase no one can accidentally change the variables.
#28
Open
rajneesh069 opened this issue
Jan 1, 2024
· 2 comments
We can do the same for other variables too. And by the way, can we migrate the project to React, because doing it using vanilla JS will make the rendering of components inefficient as the DOM needs to get painted with every little change in it, and it is highly un-optimized too!
@rajneesh069 For now , you can go ahead with using const instead of let . But the decision to migrate cannot be considered, as it involves rewriting the entire existing code, and potentially introducing new complexities and as this project is relatively small and the performance is acceptable with the current setup, sticking with vanilla JS might be a reasonable choice.
Before :
The let keyword can be replaced by "const" to ensure that variables don't get changed accidentally.
After :
I'd like to work on this issue if it gets approved.
The text was updated successfully, but these errors were encountered: