Fix variable name in citizen-engagement.js #2887
Labels
Feature: Refactor JS / Liquid
Page is working fine - JS / Liquid needs changes to become consistent with other pages
good first issue
Good for newcomers
role: front end
Tasks for front end developers
size: 0.5pt
Can be done in 3 hours or less
Milestone
Dependency
Overview
We need to fix a typo in a variable name so that we can reuse it reliably.
Details
As developers, it is important to write our JavaScript variable names carefully so that we don't mistakenly declare new variables that pollute the global namespace. In this issue, we will fix a variable name typo in
assets/js/citizen-engagement.js
in order to prevent a global variable from being declared later in the file.Action Items
assets/js/citizen-engagement.js
, changelet currentDropown;
tolet currentDropdown;
Resources/Instructions
citizen-engagement.js
is technically fine, here's a brief explanation as to why declaring variables withoutlet
,const
, orvar
isn't best practice.The text was updated successfully, but these errors were encountered: