I'm building a little click game with HTML, css and Javascript and I don't think this question belongs in the Game Dev section but here.
I've a a function to put a title and a text in a message box then it shows it and when you click on continue it will hide the message. I've given it 4 parameters,
function messageUser(title, text, fire, funct){
The first 2 are strings for Title and text, third a boolean to ask if the user would like to fire a function after the user has clicked on the button and the fourth is a string for the function name you would like to fire after you've clicked continue.
This comes in handy if you'd like to show a message before you'd like to show a character creation screen or something like that, but if I don't want to fire a function after the message can I leave the parameters empty when calling for the function like messageUser("Bra","Foo");
?