confirm("I am feeling awesome");
When you run this code, You will get something like this-
A tiny little box popped up on top of page with Ok / Cancel button.
When you click OK -- It returns true boolean value
When you click Cancel -- It returns false booleans value
You can even save the boolean value inside the variable by doing this--
var response = confirm("I am feeling awesome");
response is variable.
Now if someone clicks Ok , true will be stored in response
or if someone clicks Cancel then false will be stored in response