← Back to challenges

Nothing is Nothing?

JavaScriptHardlanguage_fundamentalsdata_structuresvalidation

Instructions

Given any number of parameters, return true if none of the arguments are falsy.

Examples

nothingIsNothing(0, false, undefined, null) ➞ false

nothingIsNothing(33, "Hello",  true,  []) ➞ true

nothingIsNothing(true, false) ➞ false

Notes

You'll have to figure out a way to access the arguments

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Keyboard Mistakes