How to display an alert in javascript?
Example:
// Using the built-in 'alert' function
alert('This is an alert!');
Solution:
// Use the 'alert' function to display pop-up alerts in web browsers.
alert('Alert: Something went wrong!');