Closed pragyamishra56 closed 10 months ago
The problem here is that you have done a find & replace.
The goal is not to replace all var
by let
, but to use const
where possible too. Also, there are likely cases where var
is correct, or where more changes are needed (as var
behaviour may be different, especially wrt scope)
Can you start with 1 file or 1 group of files?
@teoli2003 Sir I appreciate the clarification. I agree that a more thorough approach is needed. I'll work on breaking down the changes into separate PRs for a more comprehensive review. Thanks for guiding me through this process.