Using JavaScript and TypeScript Do the following : 1.Write a typescript function that takes in a student number, programme registered for, balance, and cell contact number as an optional parameter. The function should then display the fields to the console if the balance is less that N$5000.   2.Create a form that inputs a user first name and surname in separate fields. Upon clicking a button it validates whether both fields have been completed. If not, it displays the message that 'You are expected to enter both fields." If they are correct, a welcome message such as "Hello Joe Kamati" is displayed in the case that Joe Kamati is entered.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.4: A Case Study: Constructing A Date Class
Problem 7E
icon
Related questions
Question

Using JavaScript and TypeScript Do the following :

1.Write a typescript function that takes in a student number, programme registered for, balance, and cell contact number as an optional parameter. The function should then display the fields to the console if the balance is less that N$5000.

 

2.Create a form that inputs a user first name and surname in separate fields. Upon clicking a button it validates whether both fields have been completed. If not, it displays the message that 'You are expected to enter both fields." If they are correct, a welcome message such as "Hello Joe Kamati" is displayed in the case that Joe Kamati is entered.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning