Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

User Defined Functions:-

                    यह ऐसे function है जिन्हे कोई user अपनी आवश्यकता और सुविधा के अनुसार defined कर सकता है और उनका build-in-function की तरह ही उपयोग कर सकता है। ऐसे किसी function को उपयोग में लाने से पहले उसे defined करना अनिवार्य है। function को defined करने, उनको कॉल करने, उनको पैरामीटर के मान पास करने तथा उनके द्वारा return किए गये मानों को accept करने के लिए उचित grammar rules  का पालन करना अनिवार्य है।

      Syntax:-

              function <f-nm>(<list of argument>)

                              {

                                          ……………..

                                                      Body of function

                                          …………..

                                          Return (<expression>)

                              }

 

User Defined Functions:-

              These are such functions which a user can define as per his need and convenience and can use them like build-in-function. Before using such a function, it is mandatory to define it. It is mandatory to follow proper grammar rules to define functions, call them, pass parameter values to them and accept the values returned by them.

     Syntax:-

function <f-nm>(<list of argument>)

                        {

                                  ……………..

                                           Body of function

                                  …………..

                                  Return (<expression>)

                        }

error: Content is protected !!