JS

JavaScript Fundamentals 1 - Define a function in J...

21.

What is the syntax for defining a function in JavaScript?

var function() { }

function myFunction() { }

function = myFunction() { }

myFunction { }