fun-with-js | Introduction to some javascript gotchas |
fun-with-nodejs | Working with Typescript - how to create development environment |
ts-basic-types | About the basic types of typescript |
- We have Convered the 6 types of javascript: boolean, number, string, object, function, and undefined
- We have seen how to use JSON to describe complex object values
- We have seen the true meaning of the
new
andthis
keywords, and most specifically - that they do not have the same meaning as in Java. - We have experienced the problem of the missing
this
context - We learned about javascript scopes and Closures
- We learned about the
prototype
object and property
- We learned the difference between serverside javascript (NodeJS) and clientside web javascript
- We talked about modularity and the
require
keyword - We talked about
webpack
- a utility to pack "serverside" javascript files into one "web-ready" file
- We talked about modularity and the
- We saw how to turn a folder into an npm package by running
npm init
- We saw how to use the node.js
require
command in order to incorporate another module (file) into our code - We saw how the
package.json
file manages the project as a package. - We saw how to install external packages using
npm install
and thepackage.json > dependencies
section - We talked about the diffrence between
dependencies
anddevDependencies
- We saw how to use scripts in node.js
- We saw how to install the typescript compiler into the package
- We saw how to create the
tsconfig.json
file and configure different aspects of the typescript project- What the target version of javascript is
- Where to locate the source files
- Where to place the compiled files
- Libreries to include
- Adding
map
files to support debugging - Running in the compiler in
watch
mode for continous compilation
- We saw how to configure the
VS Code Debugger
for work with ournode.js
project
- We learned about the basic types of typescript
- The 6 atomic types of javascript:
boolean
,number
,string
,object
,function
andundefined
- Typed arrays:
number[]
andArray<number>
- Tuples:
[number, number], [string, boolean, number]
- Fixed object notation:
{x: number, y: boolean}
- Flexible object notation:
{[key: string]: number}
and the equivilent:Record<string, number>
- Function notation:
(x: number, y: string) => boolean
- The 6 atomic types of javascript:
- Using the
let
keyword - Defining Classes
- Declaring constructors and initializing fields in the constructor signature
- private, public and protected fields
- Using interfaces
- Typescript definition for Type Safety as "signature compatible"
- Union Types
- Cross Types
- the
type
alias