You are required to model a new user-defined object type, Account. The Account object has the following properties

The Account object type has the following methods:
Using good programming style that helps readability, write JavaScript code to do the following:
a. Write a constructor function for the Account object data type.
b. Implement the methods getName(), getBalance(), credit(anAmount), debit(anAmount) and displayInfo() according to the above specifications.
c. Create an Account instance named myAccount, and initialize its properties as follows: name = a string representing your name, balance = 200.
<<<<انا حلييت الفقرات التاليه بس مافهمت هالفقرتين ياليت احد يشرحها لي
d. Using the appropriate methods, make the following transactions to myAccount in the given order:
· Debit myAccount by 400 à Credit myAccount by 300 à Debit myAccount by 100.
e. Use the method display() to show myAccount final state after making the transactions in d. Insert a screen dump showing the resulted alert box into your Solution Document.