JavaScript: what does "void 0" mean?
<p>TypeScript <a href="https://www.typescriptlang.org/play/" rel="nofollow">transpiles certain code</a> into this:</p>

<pre><code>Animal.prototype.move = function (distanceInMeters) {
    if (distanceInMeters === void 0) { distanceInMeters = 0; }
    ...
</code></pre>

<p>What's <code>void 0</code>? Is that the same trick as used for links <code>void(0)</code>? Why is not <code>undefined</code> used instead?</p>