JavaScript | JavaScript Functions | Question 1

Last Updated :
Discuss
Comments

How do you define a function in JavaScript?

function myFunc() {}

def myFunc() {}

function = myFunc {}

func myFunc() {}

Share your thoughts in the comments