Make sure you have TypeScript installed:
npm install -g typescript
Configure this project to use TypeScript with a tsconfig.json
file.
Answer the questions below in a ts/script.ts
file. The compiled JavaScript file should be outputted in a js
folder.
Create variables typed with the following types: any, boolean, string, number.
Create an array that can hold only boolean values.
Create an array that can hold either string or number values.
Create an a tuple with the following types: string, string, number.
Create a function with two parameters. The first accepts either a string or boolean value, the second accepts either a number or string value.