R

Ram Sharma • 193.86K Points
Coach

Q. Which is the correct syntax for the function definition?

  • (A) return_type function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  • (B) function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  • (C) return_type function_name(parameter1, parameter2, ...) { /*Function's body*/ }
  • (D) function function_name(parameter1, parameter2, ...) as return_type { /*Function's body*/ }
  • Correct Answer - Option(B)
  • Views: 178
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics