How many types of functions are there in javascript?



How many types of functions are there in javascript?..

Answer / Om Shankar

In JavaScript, there are two main types of functions: function declarations and function expressions. Function declarations are defined using the 'function' keyword followed by the function name and opening curly braces, while function expressions can be assigned to variables or objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is trim whitespace google sheets?

1 Answers  


how can we generate alert message without referashing page in asp.net with language vb.net and script use in java script .means with out referash the page message in java alert

0 Answers   NIC,


What is encodeuri() in javascript?

1 Answers  


How to redirect a page to another page in javascript?

1 Answers  


what is the difference between the below two statements:- (1) var myname = "akiii"; (2) myname = "akiii";

1 Answers  


Why do we need npm?

1 Answers  


Is javascript event driven?

1 Answers  


Are you concerned that older browsers don't support javascript and thus exclude a set of web users? Individual users?

1 Answers  


How to get height and width of different browser in Javascript?

1 Answers  


How to create the namespace in javascript?

1 Answers  


How do you trim in javascript?

1 Answers  


Can you assign a anonymous function to a variable?

1 Answers  


Categories