Hey their lovely people. I just started learning javascript and loving it too far. I want to share about three important and basic functions in Javascript that are :-
alert( ) : This takes a string as an argument and display that string in the dialogue box that pops up on the page with two buttons (OK / Cancel). It is usually used to give an alert to the end user.
prompt( ) : This also takes a string as an argument and display on page as dialogue box but the difference is , that it will ask us to input something in the input box . It is usually used to gather some small information from the user.
confirm( ) : This is very similar to alert and display two button as (OK / Cancel) , but the only difference is that it will return a boolean value after clicking on either of that button.
Hope you all liked this blog.
Thanks