Solved

Which of the Following Syntax Is Used for a Function

Question 38

Multiple Choice

Which of the following syntax is used for a function to return a value?


A) ​return value;
Function_name(parameters) {
Commands
}
B) ​function
Return value;
{
Function_name(parameters)
Commands
}
C) function function_name(parameters) {
Commands
Return value;}
D) function_name(parameters)
{
Return value;
Commands
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions