For questions regarding the JavaScript `confirm` function or other such functions that ask the user for yes/no confirmation.
In JavaScript the confirm method takes a single string parameter, the statement that the user is confirming, and return true/false for whether the user clicked 'OK' (true) or 'Cancel'/Close (false).
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.