JS

Functions in JavaScript - Defining functions in ja...

34.

Which of the following options correctly defines a function with parameters in JavaScript?

function myFunction(param1 : 1, param2 : 2) {}

function myFunction(param1; param2) {}

function myFunction(param1, param2) {}

function myFunction() {}