0

Variables

Help me, please! How to write down the code for variables to work let balance = 416500; let withdraw = 160000; //your code goes here console.log(balance-=withdraw); balance = 964100; 145632; 350; 450000; withdraw =900000; 145632; 20; 9000;

16th Jan 2023, 6:11 PM
Natalia Ikonnykova
Natalia Ikonnykova - avatar
5 Answers
+ 1
Do not change the code above //Your code goes here. The balance and withdraw variables and values are already giving to you. All you need is the console.log part.
16th Jan 2023, 7:10 PM
Chris Coder
Chris Coder - avatar
+ 1
As previously stated. You only need this line to pass all test cases. //your code goes here console.log(balance-=withdraw);
16th Jan 2023, 7:25 PM
Chris Coder
Chris Coder - avatar
0
I have that let balance = parseInt(readLine(), 10); let withdraw = parseInt(readLine(), 10); And 5 cases with variables When I use all that 5 variables for balance and withdraw, just only one of them works another cases haven't done
16th Jan 2023, 7:15 PM
Natalia Ikonnykova
Natalia Ikonnykova - avatar
0
Thank you so much 🙏💙💛
16th Jan 2023, 8:35 PM
Natalia Ikonnykova
Natalia Ikonnykova - avatar
0
Awesome! You're Welcome!
16th Jan 2023, 8:37 PM
Chris Coder
Chris Coder - avatar