Is function a data type in javascript?



Is function a data type in javascript?..

Answer / Lalit Mohan Gupta

Functions are objects in JavaScript and therefore can be considered as a data type. In addition to the primitive data types like number, string, boolean, null, and undefined, JavaScript also has complex data types such as functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Can javascript code be broken in different lines?

1 Answers  


What is a prompt box in javascript?

1 Answers  


How will you create new object in javascript?

1 Answers  


Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.

1 Answers  


How to get value of an element by class in javascript ?

1 Answers  


What are JavaScript Cookies?

1 Answers  


How do you write a comment in javascript?

1 Answers  


How to determine the state of a checkbox using javascript?

1 Answers  


What is event in web programming?

1 Answers  


What are the characteristics of javascript ‘strict mode’?

1 Answers  


TypeError: document.getelementbyid(...) is null?

1 Answers  


How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };

1 Answers  


Categories