Created
June 3, 2019 16:52
-
-
Save bartcis/a486fbf1c575e060bdad852411770411 to your computer and use it in GitHub Desktop.
How not to assign values in JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let boots | |
| // Value assignemnt anti-pattern | |
| if (boots = 'green') { | |
| console.log(boots); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment