Skip to content

Conversation

PRABHAKAR9107
Copy link

Hello Priya,

I saw some output mistakes during solving problems.

line no:- 140 and 141
output :-{} //There are only six falsely values in JavaScript: undefined, null, NaN, 0, "" (empty string), and false of course. {} is truthy value.

line no:- 180 to 183
We can also achieve the result through the spread operator, but we can consider the above method as the best practice.

line no:- 473 to 477

In line no 477 we are also invoking arrow fn as well .so, the output is a number.

Thank you for giving the best material

Happy Coding

Hello Priya,

I saw some output mistakes during solving problems.

line no:- 140 and 141
output :-{} //There are only six falsely values in JavaScript: undefined, null, NaN, 0, "" (empty string), and false of course. {} is truthy value.

line no:- 180 to 183 
We can also achieve the result through the spread operator, but we can consider the above method as the best practice.

line no:- 473 to 477

In line no 477 we are also invoking arrow fn as well .so, output is number
@prajwalzingare
Copy link

yes, your mentioned mistakes are true.
greate material

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants