btfredr / lesson-task-workflow2-module1-lesson1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workflow 2 - Module 1

Lesson Task 1 Questions

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.

Question 1

Create variables typed with the following types: any, boolean, string, number.

Question 2

Create an array that can hold only boolean values.

Question 3

Create an array that can hold either string or number values.

Question 4

Create an a tuple with the following types: string, string, number.

Question 5

Create a function with two parameters. The first accepts either a string or boolean value, the second accepts either a number or string value.

About


Languages

Language:TypeScript 43.5%Language:JavaScript 36.6%Language:HTML 19.8%