Skip to content

Commit 2203163

Browse files
authored
JavaScript Alerts
1 parent fc5c3f9 commit 2203163

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

js/js_dialogs.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*can be use to collect user input*/
2+
var user_name = prompt("What is your name?", "");
3+
4+
/*can be use to confirm actions*/
5+
var user_confirm = confirm("Do you like Ice cream ?");
6+
7+
/*can be use to show messages to user*/
8+
alert("Basic JS Alert");

0 commit comments

Comments
 (0)