0

Withdrawal system issue

I'm just stuck over here. Can someone please help me with my project. I want to make the least withdrawal $50 and withdrawal can be done once in 5 minutes https://code.sololearn.com/W42YGtDn8Raa/?ref=app

4th Jun 2023, 8:36 PM
Stephen Anim
Stephen Anim - avatar
2 Answers
+ 7
Stephen Anim The provided info is not enough. Pls edit your question and add: 1. A tag with the language name 2. A description of the task 3. A link to your code in Code Playground - use "+" button 4. An explanation of your difficulties This way, we'll know what you're trying to do and what help you need.
4th Jun 2023, 10:08 PM
Emerson Prado
Emerson Prado - avatar
+ 3
Stephen Anim Note you have a tab for each language - HTML, CSS and JS. Use them accordingly, so your code gets more readable. More readable = more mantainable = better. That said, just add these conditions in the withdrawal method. For the 5 minute part, you'll need an instance variable, with time of last successful withdrawal.
5th Jun 2023, 11:32 AM
Emerson Prado
Emerson Prado - avatar