Skip to content

Instantly share code, notes, and snippets.

@IllegalSkillsException-active
Created October 2, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IllegalSkillsException-active/2ffbf6538266433fe8ddc946549c8e19 to your computer and use it in GitHub Desktop.
Save IllegalSkillsException-active/2ffbf6538266433fe8ddc946549c8e19 to your computer and use it in GitHub Desktop.
challenge: in your own words
scope reffers to whether or not a variable is made, and called upon in a single function; or if the variable is made outside of a function
and called upon in multiple functions.
global variables are avoided because there is a chance that the varible will be modified from a source outside of the file it was created,
and cause errors or bugs due to its' new modified value.
javascripts strict mode will ensure that you always use let or const when declaring a new variable.
a side effect is when a function reaches outside of its local scope and modifies the value of a variable that is in a global scope.
a function is pure when it is both determinate and has no side effects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment