I was trying to write some javascript function and realised that
function testFunction(input_1, input_2, input_3) {
alert("alert");
}
however when i call the function like this:
<input type="button" value="click" onclick="testFunction("1", "2")">
why will it still work even with just two parameters?
onclick="testFunction("1", "2")">should beonclick="testFunction('1', '2')">. Otherwise you'll get errors.