I’ve never been a real JS programmer and I’m now getting a bit more into object oriented JS as I’ve heard this is “the thing” nowadays. I’ve read this article as a primer. In one code example further down the page (under the Step 3 heading) it has this:
var myFeature = {