Ansehen The Complete Javascript Course 2020: Build Real Projects!
subtractButton.addEventListener("click", () => { const result = parseFloat(num1.value) - parseFloat(num2.value); result.textContent = `Result: ${result}`; });
In this project, we'll build a to-do list app that allows users to add, remove, and mark tasks as completed. subtractButton
By the end of the course, you won't just "know" JavaScript; you will understand the ecosystem that surrounds it. result.textContent = `Result: ${result}`
Here's the HTML code:
Here's an idea: