« first day (510 days earlier)      last day (57 days later) » 

16:39
What is the purpose of having a void operator in JavaScript that just returns undefined, instead of just having people use the value undefined directly? I could understand some kind of, evaluating expressions with side effects, but most people just use void with 0.
17:10
90
Q: What is the point of void operator in JavaScript?

mkoryakI've seen some people using void operator in their code. I have also seen this in href attributes: javascript:void(0) which doesn't seem any better than javascript:; So, what is the justification of using the void operator?

The undefined constant is relatively new

« first day (510 days earlier)      last day (57 days later) »