mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-16 18:07:45 -05:00
580 B
580 B
title
| title |
|---|
| Catch Misspelled Variable and Function Names |
Catch Misspelled Variable and Function Names
Problem explanation:
Fix the two spelling errors in the code so the netWorkingCapital calculation works.
Hint
Check the spelling of the first two variables against when it is used.
Spoiler alert!
Solution ahead!
// 'i' and 'e' swapped in "receivables" and missing 's' in "payables"
let receivables = 10;
let payables = 8;
let netWorkingCapital = receivables - payables;
console.log(`Net working capital is: ${netWorkingCapital}`);