I agree with you, this old weird js stuff is a pain in the ass, but I added this weird stuff for developers learn not only the good parts, but bad too, because it's important to remenber how javascript was in the dark days and most important how this language evolved with the improvements provided by ES6/7/8/9/10.