Welk van onderstaande functiedefinities is correct?
a)
function mijnFunctie (parameter1, parameter2){
alert('Het totaal bedrag is: ' + parameter1 + parameter2);
}
b)
var mijnFunctie = function(parameter1, parameter2){
alert('Het totaal bedrag is: ' + parameter1 + parameter2);
}
Select one of the following: