3 ms·
Perhaps unrelated, but JavaScript has the most annoying handling of "this" in classes that I've ever seen. I'm constantly typing "bind(this)", while the defaul
by nkkollaw 9y ago
Perhaps unrelated, but JavaScript has the most annoying handling of "this" in classes that I've ever seen.
I'm constantly typing "bind(this)", while the default case should be that "this" within a class points to the object.
I understand backward compatibility, but I wish there was some command I could add at the beginning of the file to make JS behave normally. Kind of like "use strict".