3 ms·
> To do that we can simply return without returning anything i.e. null. I'm no JavaScript expert, but a function that returns nothing results in undefined, no?
by saagarjha 7y ago
> To do that we can simply return without returning anything i.e. null.
I'm no JavaScript expert, but a function that returns nothing results in undefined, no?
- gridlockd 7y agoIndeed, null!==undefined and if you want to return null you must return null. However, null==undefined so you might not even notice the difference.
- dev_prashaant 7y agoYeah, true. Thanks.