Difference between null and undefined (explained in 5 seconds)
Dec 21, 2020 · 1 min read · null says there is absolutely nothing. undefined says there should be something but I have nothing. This is why the following function returns undefined when the argument is passed nothing because it means the function needs something but it has ...
PPurvi commented