|
|
|
|
|
by tomp
5223 days ago
|
|
> JavaScript is an object-oriented languages; use objects! They make async painless. In the example above, you're unable to use ''this'' in the ''dataGot'' function (when invoked as a callback). Object orientedness is very easy to get wrong in JavaScript, if you're coming from C++/Java/Python background. |
|
I also forgot that it's this.dataGot. dataGot doesn't exist in that context :)