0 votes
in JavaScript by
Which one of the following keywords is used for defining the function in the JavaScript?

a) Void

b) init

c) main

d) function

1 Answer

0 votes
by

Answer: D

Reason: In JavaScript, a function is defined by using the "function" keyword along which function is named, followed by the () parenthesis. A function name can contain the dollar's signs, underscores, letters and even the digits.

Related questions

0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
0 votes
asked Oct 9, 2022 in JavaScript by Robin
...