How to make sure undefined is not defined in javascript | Dark Hacker News