let balance = parseInt(readLine(), 10); let withdraw = parseInt(readLine(), 10); balance -=withdraw; console.log(balance ); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

let balance = parseInt(readLine(), 10); let withdraw = parseInt(readLine(), 10); balance -=withdraw; console.log(balance );

Code to calculate balance after withdrawal in JavaScript please help me solve it am finding it difficult

21st Mar 2023, 9:06 PM
Ali Hassan Ojochegbe
Ali Hassan Ojochegbe - avatar
4 Answers
+ 5
Save code and share link.. That helps debug easily.. Also add full details about task description and task number of lesson in course...
21st Mar 2023, 9:33 PM
Jayakrishna 🇮🇳
+ 3
Task number means: Sample : Number : 2.2 Name: Your first program From Intermediate javascript, I cant able to find your mentioned task in my visible lessons... Save or add code in description place. not in question place, It may cutoff there.
21st Mar 2023, 9:51 PM
Jayakrishna 🇮🇳
0
The task number is Input Balance=450000 Withdraw =9000 Output Balance = 441000 Task Calculate and output the balance after withdrawal in JavaScript
21st Mar 2023, 9:40 PM
Ali Hassan Ojochegbe
Ali Hassan Ojochegbe - avatar
0
Maybe you need to write like this? console.log("Balance =", balance);
22nd Mar 2023, 12:10 AM
Solo
Solo - avatar