Comment on Which side are you? Javascript or Typescript

<- View Parent
severien@lemmy.world ⁨1⁩ ⁨year⁩ ago

Yes, the features are there. Just the API is still horrible.

As an example, make a hidden element visible (extremely common imperative operation).

jQuery:

$("#element").show();

Native JavaScript:

document.getElementById("element").style.display = '';

I hope you’d agree that the native JS is certainly not an example of good API.

source
Sort:hotnewtop