- 1

How to fix error showing in chrome console that showing undefined and not showing any problem in vs code ?

Not showing any problem In vs code and not showing output looks everything is fine Function add(){ {Console.log(argument.lenght);} } Add(2,3) The output should be 2 but it's showing undefined in the console

8th Aug 2022, 8:04 AM
Mani Singh
Mani Singh - avatar
7 Respostas
+ 1
Oh ok thank you Will try that one Thank you once again
8th Aug 2022, 6:57 PM
Mani Singh
Mani Singh - avatar
0
During typing in the by mistake I put uppercase for F and c but how about the add() I didn't get you
8th Aug 2022, 8:20 AM
Mani Singh
Mani Singh - avatar
0
It's arguments (with 's' at end) Mirielle was telling you to match the function name. You defined add() but you call Add(), Remember JS is a case sensitive language, "add" and "Add" are not similar identifier...
8th Aug 2022, 1:32 PM
Ipang
0
lenght => length
8th Aug 2022, 11:57 PM
Brian
Brian - avatar
0
I am comparing the equal sign only
8th Aug 2022, 11:59 PM
Mani Singh
Mani Singh - avatar
0
I meant that you need to transform your misspelling of "lenght" to the correct spelling, "length".
9th Aug 2022, 12:01 AM
Brian
Brian - avatar
- 1
Sorry I didn't get you
8th Aug 2022, 8:18 AM
Mani Singh
Mani Singh - avatar