MCQ Answer

What is the purpose of the function keyword in JavaScript?

What is the purpose of the function keyword in JavaScript?

जावास्क्रिप्ट में function कीवर्ड का उद्देश्य क्या है?
Topic : JS Basic Syntax and Data Types

A. Declares a variable

B. Defines a loop

C. Creates a function

D. Represents a conditional statement




Correct Answer is :

C. Creates a function



Explanation

in JavaScript function keyword is sued to create a user define function

Syntax:

function function_name(parameter list) {
body of function
}
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz