Question: 25

Which of the following is the correct way to create a function in JavaScript?

function = myFunction()

function:myFunction()

function myFunction()

myFunction()

The correct way to create a function in JavaScript is:

function myFunction()