From what I understand, the keyword void in Javascript is some kind of function that takes one argument and always returns the undefined value. For
void
undefined
void also evaluates the expression you pass to it. It doesn't just return undefined.