specific code as follows:

 const readLine = require ('readline-sync') / / / / / reference readline-sync let arr = [['zhang','123', / / / / / / / / / / / / / / / / / / / / / / Let user = readline.question (); console.log ('please enter the password:'); let password = readline.question (); for (let I = 0; I <); Return;}} / / / / input is incorrect, more than three times if (s! = 0) {console.log (` password or account is mistaken, you have a ${s} opportunity, please reenter! ); s--;} else {console.log ('sorry, account lockout! Break;}}}} / / deposit let FN1 = function (I) {console.log ('deposit'); console.log ('please enter the deposit amount:'); let Cunkuan = readline.question () - 0; arr[i][2]+= Cunkuan; ('system is saving for you, please wait a little. ". n savings success your current balance is' + arr[i][2] ';} / / / / withdraw let FN2 = function (I) {console.log (' withdrawal '); console.log (' please enter the amount of withdrawals: '); let qukuan = readline.question () - 0; if (' sorry "your balance is not enough! Please re enter the amount or withdraw);} else {arr[i][2] = arr[i][2] - qukuan; console.log ('is collecting money for you. n your current balance is: '+ arr[i][2]';}} / / view let FN3 = function (I) {console.log ('view'); console.log ('is querying. n your current balance is: '+ arr[i][2]';} / / exit let fn4 = function () {console.log ('exit') '; console.log (' welcome to your next use! } / / / / process let mean = function (I) {for (let Yewu = 1; Yewu > = 1; yewu++) {console.log ('please choose the business: n1. deposits: Exit:'); 2: FN2 (I); continue; case 3: FN3 (I); continue; case 4: fn4 (); Writing a simple bank to withdraw money to save money, we hope to help you. If you have any questions, please leave a message for me. Xiaobian will reply to you in time. 

This paper fixed link:http://www.script-home.com/using-javascript-function-to-write-simple-bank-saving-process.html | Script Home | +Copy Link

Article reprint please specify:Using JavaScript function to write simple bank saving process | Script Home

You may also be interested in these articles!