Lay out the project Let’s start out with a new directory. We’ll name it proj for now, but you can change it to whatever you want
Create a webpack configuration file Create a webpack.config.js file at the root of the project directory.
Browserify Now let’s move this project from Node to the browser. To do this, we’d like to bundle all our modules into one JavaScript file. Fortunately
Set up the build Right click on the project and click New Item. Then choose TypeScript Configuration File
Symbol.hasInstance A method that determines if a constructor object recognizes an object as one of the constructor’s instances
Consuming Dependencies There are several kinds of dependencies you might have.
Call the script from a view In the Solution Explorer, open Views
Default exports Each module can optionally export a default export. Default exports are marked with the keyword default;
Using Namespaces Namespaces are simply named JavaScript objects in the global namespace. This makes namespaces a very simple construct to use
const declarations const declarations are another way of declaring variables.
Page 2 of 29