mardi 17 septembre 2019

Document method reference is not worked in JavaScript

I save the reference of document method:

let qs = document.querySelector;

Then try to get the element:

btnSort = qs('button');

Why does this method not work as for references to simple functions?




Aucun commentaire:

Enregistrer un commentaire