Description
Two variables can have the same name if they're declared in different scopes. In the example below, the parameter x is said to "shadow" the variable x declared above it. The outer x can no longer be accessed inside the sum function.
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/LCSOGthb/GAG-Trade-Sys/issue/JS-0123/occurrences/
Description
Two variables can have the same name if they're declared in different scopes. In the example below, the parameter
xis said to "shadow" the variablexdeclared above it. The outerxcan no longer be accessed inside thesumfunction.Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/LCSOGthb/GAG-Trade-Sys/issue/JS-0123/occurrences/