Assignment Operators
Assignment Operators
Assignment operators update an existing variable from its current value. They are useful when a value moves step by step, such as a balance or score.
Your task: Update accountBalance by applying the deposit, payment, and service fee in order. Store the original balance in openingBalance before the updates, then log the final balance.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Assignment Operators
Assignment operators update an existing variable from its current value. They are useful when a value moves step by step, such as a balance or score.
Your task: Update accountBalance by applying the deposit, payment, and service fee in order. Store the original balance in openingBalance before the updates, then log the final balance.