Comment

Comment by ricklancee

Shouldn't the undefined check be like this?

    if (typeof fruit === "undefined") {
       fruit = "strawberry";
    }
Unless your doing something like:

    (function(undefined) {

    })();
parent ricklancee 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton