Typescript ionicons-v5-c

tsc

​​tsc​ is the command line tool to compile typescript files manually. You then can use node <filename>​ to run the compiled script in the console

webpack

​​Using webpack it bundles all our modules together and keeps compiled outputs out of our tree views in our text editors.

tsconfig.json

​​Use this file to configure the tyepscript settings. Can specify which JavaScript features to include in  the lib​ property. 

arrow function

​​To avoid having to assign self = this​ to cache scopes, can use arrow functions which ignores the scope or can think of as inherits the scope. Don’t always use an arrow function, only use them when you need them.

property definition shorthand

​​This allows you to create a property based off the value of another property.

object method definition shorthand

​​Within object literals you don’t need to assign functions to properties, you can have the function directly in the object which will do the same.

rest parameters

​​Will take all the arguments and put them into a single argument using the rest parameters. You can think of this as ‘give me the rest/all of the arguments’.

array spread operator

​​Merge arrays together. Similar to concat. Spread the values of the two arrays into a single array. Does not keep reference to the variable containing the arrays, creates a copy.