Courses
All Courses
Udemy
YouTube
LinkedIn Learning
Pluralsight
Learning paths
All Paths
C#
ASP.NET Core
Web Development
Blazor
React
Git & GitHub
CI/CD
Full Stack (Simplified)
Articles
Free apps
More
About
Announcements
Tips
Start Learning
1 / 9
() => { }
is a function: code kept for later. When does Sold appear in the console?
buy.addEventListener("click", () => { console.log("Sold") })
1
Once, as soon as the script runs
2
Every time the button is clicked
3
Only the first time it is clicked