bestand gemaakt + variabelen uitleg toegevoegd
This commit is contained in:
21
docs/typescript cheatsheet.md
Normal file
21
docs/typescript cheatsheet.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# typescript funties
|
||||||
|
|
||||||
|
|
||||||
|
* "let bruh;" met "let" declare je een variabel
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
let guess;
|
||||||
|
|
||||||
|
guess = "blue";
|
||||||
|
guess = 7;
|
||||||
|
|
||||||
|
```
|
||||||
|
Een variabel kan alles zijn in typescript. Het is "any" je kan het later altijd een type geven
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph TD;
|
||||||
|
A-->B;
|
||||||
|
A-->C;
|
||||||
|
B-->D;
|
||||||
|
C-->D;
|
||||||
|
```
|
Reference in New Issue
Block a user