Used built in functions alert, confirm and prompt