Catch Misspelled Variable and Function Names

Catch Misspelled Variable and Function Names
0

#1

Tell us what’s happening:
I changed the spelling but nothing happened? Please help me.

Your code so far


let recievables = 10;
let payable = 8;
let netWorkingCapital = recievables - payable;
console.log(`Net working capital is: ${netWorkingCapital}`);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/catch-misspelled-variable-and-function-names


#2

I’ve tried it with the link and the output was:

// running test
recievables is not defined
recievables is not defined
recievables is not defined
recievables is not defined
recievables is not defined
// tests completed

Then I’ve tried it with CodePen and it outputs:

Net working capital is: 2

#3

You have to correct the variable names inside the calculation and not by the declaration


#4

Thanks very much, I really appreciated your help sir :sob::heart_eyes:


#5

You’re welcome!:grin:


#6

let receivables = 10;
let payables = 8;
let netWorkingCapital = receivables - payables;
console.log(netWorkingCapital);