Rename currentWeapon variable to currentWeaponIndex #54777
Labels
help wanted
Open for all. You do not need permission to work on these.
new javascript course
These are for issues dealing with the new JS curriculum
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
The
currentWeapon
variable could be better calledcurrentWeaponIndex
reflecting that it is a variable that is to be used to index the arrayweapons
Proposal
Rename all instances of
currentWeapon
tocurrentWeaponIndex
to make it clearer in the examplesAffected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-javascript-by-building-a-role-playing-game/
Your code
Expected behavior
N/A
Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: