Hello Team,
FYI: Quiz Q&A error for future updates:
https://academy.moralis.io/quizzes/javascript-and-the-dom-quiz
Suppose a node <div data-order=”5″></div> is given and the JavaScript variable $element points at this div in the DOM. How do we access the value of the data-order attribute?
document.querySelector(‘div’).getAttribute(‘order’);
$element.querySelector(’[data-order]’);
$element.dataset[‘data-order’];
$element.dataset.order;
$element.dataset.order;
last 2 answers are duplicates in the quiz widget, but test disregards the 2nd to last as "incorrect"