How to define name function in javascript?



How to define name function in javascript?..

Answer / Ajay Kumar Agrahari

To define a named function (also called a function declaration) in JavaScript, you write the function keyword followed by the function name, parentheses with or without parameters, and curly braces for the code inside the function. For example:n```javascriptnfunction myFunction() {n // Your code here...n}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

how can we retrieve value from one database server and store them another database server using sql server code

1 Answers   HP,


Have you used any browser for debugging? If yes, how is it done?

1 Answers  


if the two text boxes are there i want assign the vales like 2&3 and if i select button means i want find the sum.this is client side scripting in javascript

7 Answers   Infosys,


What is output of “20” + 20? In javascript?

1 Answers  


How to test PAGE LOAD TIME, RELOAD THE PAGE, CAPTURE THE URL'S , TEST THE PIXALS please please above all these how to test as a tester

1 Answers  


What is the data type of variables in javascript?

1 Answers  


What is a reverse string?

1 Answers  


In Java coding we will write a public static void main()? Why won't we write as a static public void main()

1 Answers  


1) How can we use java script in testing the application? 2) What all the things(Software application - like browser, notepad) we need to learn Jscript?

1 Answers  


Who introduced javascript?

1 Answers  


coding of java scripts

1 Answers   Oracle,


Does apple use javascript?

1 Answers  


Categories