How does userSelection get affected by this code if the user clicks "Cancel" to close the dialog box?
let userSelection = confirm("Would you like to save your changes?");
How does userSelection get affected by this code if the user clicks "Cancel" to close the dialog box?
let userSelection = confirm("Would you like to save your changes?");