JS

JavaScript Fundamentals 3 - Syntax for defining a ...

21.

Which of the following is the correct syntax for defining a function with parameters in JavaScript?

function myFunction { }

myFunction() { }

function myFunction(param1, param2) { }

var function() { }