How will you create a modal dialog with two buttons "Ok" and "Cancel" to ask user if he/she is sure to delete the item?
Explanation
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. Example:

if (confirm("Sure to delete item?") {
      function(){} // delete item
   }

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести