Exercise-10 MST Programs (1)
Exercise-10 MST Programs (1)
10. a
Course Name: Typescript
Module Name: Rest Parameter
AIM: Implement business logic for adding multiple Product values into a cart variable
which is type of string array.
10.a OUTPUT:
10.b
Course Name: Typescript
Module Name: Creating an Interface
AIM: Declare an interface named - Product with two properties like productId and
productName with a number and string data type and need to implement logic to
populate the Product details.
10.b OUTPUT:
10.c
Course Name: Typescript
Module Name: Duck Typing
AIM: Declare an interface named - Product with two properties like productId and
productName with the number and string data type and need to implement logic to
populate the Product details.
10.d
Course Name: Typescript
Module Name: Function Types
AIM: Declare an interface with function type and access its value.