My issue
Not understanding the mistake
My code
var textElement = document.getElementById("text");
var button = document.getElementById("button");
button.addEventListener("click", () => {
textElement.style.textDecoration = 'line-through';
});
Learning course: Web development using JavaScript
Problem Link: Modifying CSS Based on User Input in Web development using JavaScript