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
6 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...
+ 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.
0
The task number is
Input
Balance=450000
Withdraw =9000
Output
Balance = 441000
Task
Calculate and output the balance after withdrawal in JavaScript
0
Maybe you need to write like this?
console.log("Balance =", balance);