Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Takes one argument, Displays the alert message
- function displayAlert(message){
- alert(message);
- }
- // Takes two argument. Displays the alert message if the second argument is true.
- function displayAlert(message, shouldDisplay){
- if(shouldDisplay){
- alert(message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement