DOM Quiz Duplicate Answer Issue

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"

1 Like

Thank you for notifying it! I have removed the duplicate answer, the correct answer is still the same but should show only 1 option now :nerd_face:

Carlos Z