Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Scope is where the a variable is available in code. A variable with global scope is available anywhere in the code, whereas a variable with local scope is only available in the block within which it is declared.
  2.  
  3. Global variables are avoided because they increase the chances of unwanted side effects in the code.
  4.  
  5. Strict mode is a mode that throws errors when a variable is declared without using the let or const keyword.
  6.  
  7. Side effects are changes of values outside of a function's local scope. A pure function is one that always returns the same value when given the same input and also has no side effects.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement