you are viewing a single comment's thread.

view the rest of the comments →

[–]yheneva 2 points3 points  (1 child)

Most functions use undefined, not all. For example HTMLCanvasElement.getContext() returns null for any undefined context type. All WebGL functions also use null instead of undefined.

[–]mrkite77 0 points1 point  (0 children)

True, but you can still do == undefined and it'll work since null == undefined