Why does void in JavaScript require an argument?

JavascriptWeb DevelopmentFront End Technology

The void operator is used to evaluate the given expression. After that, it returns undefined. It obtains the undefined primitive value, using void(0) i.e. 0 as an argument.

The void(0) can be used with hyperlinks to obtain the undefined primitive value,

Example

Live Demo

<!DOCTYPE html>
<html>
</html>