JavaScript is a programming language that allows you to make web pages interactive.
For example, you can use JavaScript to create alerts, change content dynamically, or respond to user actions.
Click the button to display an alert message:
1. What is JavaScript primarily used for?
2. How do you display an alert in JavaScript?