oscar8a / java-mod-8-typescript-lab-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Lab 4

Instructions

Rewrite your prepend HTML application to make it use arrays instead of 2 values and make the function use generics, so that it can handle both strings and numbers.

In order to allow any value to be entered in your input fields, remove the type attribute from the input tag.

Note: this could be done by using a union type instead of using generics, but the point of the exercise is to practice using arrays and using generics.

About

License:Other


Languages

Language:TypeScript 67.1%Language:HTML 32.9%