Anyone

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile: // Define variables
let checking = 9000 - 700;
let savings = 2 * 12000;
let investment = 39000 + 18000;
let retirement = Math.round(93000 * 1.02);

// Print balances
console.log(“1\n”, checking); // Output should be 8300
console.log(“2\n”, savings); // Output should be 24000
console.log(“3\n”, investment); // Output should be 57000
console.log(“4\n”, retirement); // Output should be approximately 94860, depending on rounding

// Calculate total balances
let totalBankBalance = checking + savings;
console.log(“5\n”, totalBankBalance); // Output should be 32300

let totalNonBankBalance = investment + retirement;
console.log(“6\n”, totalNonBankBalance); // Output should be 151860
Run Check #1 Failed.

Your code’s output didn’t match our expected output.

keyboard_arrow_up

Actual Output from your code:

1 8300 2 24000 3 702000000 4 94860 5 199200000 6 66591720000000

Expected Output:

8300 24000 57000 94860 32300 151860

Actual Output

Expected Output

1

  • 1

2

3

  • 2

4

5

  • 3

6

  • 702000000

7

  • 4

8

9

  • 5

10

  • 199200000

11

  • 6

12

  • 66591720000000

1

  • 8300

2

  • 24000

3

  • 57000

4

  • 94860

5

  • 32300

6

  • 151860

368320