We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c379c2d commit 66a1318Copy full SHA for 66a1318
077-sortable list/script.js
@@ -123,7 +123,7 @@ function handleKeyDown(e) {
123
function checkOrder() {
124
listItems.forEach((listItem, index) => {
125
const personName = listItem.querySelector(".draggable").innerText.trim();
126
- // Refactor checkOrder for Efficiency
+ // Refactor checkOrder for Correctness
127
listItem.classList.remove("right", "wrong");
128
if (personName !== richestPeople[index]) listItem.classList.add("wrong");
129
else listItem.classList.add("right");
0 commit comments