This lesson plan outlines ten exercises in increasingly difficult order to teach college students how to write TypeScript, along with their corresponding solutions.
Exercise 1
Instructions: Open the TypeScript playground, and enter a simple statement like “console.log("Hello World!");” and run it.
Solution: The output of the program should be “Hello World!”.
Exercise 2
Instructions: Use the text editor to create a simple program that prints the numbers 1-10.
Solution: The program should print the numbers 1-10 in order, such as “1 2 3 4 5 6 7 8 9 10”.
Exercise 3
Instructions: Create a simple function that takes a number as an argument and prints out the number multiplied by two.
Solution: The function should take a number as an argument,
provide the javascript code to solution these questions