yarn add --dev \
@babel/core \
@babel/cli \
@babel/preset-env \
@babel/preset-typescript \
typescript
This file contains 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
/* Scope is the idea of what can or cannot be seen in your code. Global scope encompasses code | |
that can be seen anywhere in your code, including other files and inside functions. Local scope | |
is code that can be accessed inside the current scope chain level. If you declare a variable inside | |
a function for instance, that variable will not be recognized outside that function. This allows for | |
less buggy code and the reuse of variable names.*/ | |
/* Global variables are to be avoided because they increase the risk of writing buggy code. Functions that | |
rely on global variables can be both indeterminate and has side effects, meaning that the function may not | |
produce the same results given the same input and may also have unintended consequences outside the function | |
itself.*/ |
OlderNewer