This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var balance = 100.0; //set initial balance. | |
| function get_balance() { | |
| alert('Your current balance is: '+balance); | |
| atm(); | |
| } | |
| function make_deposit() { | |
| var deposit = parseFloat(prompt('How much would you like to deposit?')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useRef } from "react"; | |
| import { | |
| BsFillArrowLeftCircleFill, | |
| BsFillArrowRightCircleFill, | |
| } from "react-icons/bs"; | |
| import { useNavigate } from "react-router-dom"; | |
| import { useSelector } from "react-redux"; | |
| import dayjs from "dayjs"; | |
| import ContentWrapper from "../contentWrapper/ContentWrapper"; |