Answer & Solution
Answer: Option Option B
Solution:
The recommended approach for including line breaks in an alert message using window.alert() is by using special escape characters like \n within the message string. This method ensures that line breaks are correctly interpreted by window.alert() and displayed as separate lines in the alert dialog box. Using HTML <br>
tags within the message string is not valid for window.alert() and will be treated as plain text, while using multiple alert messages or CSS styles for line breaks is not efficient or standard practice for creating multiline alert messages.