1.

What Is The Use Of Functions In Wmlscript?

Answer»
  • The functions are used to combine the statements that can be executed together without writing it differently. 
  • FUNCTION DECLARATION in WMLScript can be done using the statement as:
    • extern function identifier(FormatParameterList) Block ;
  • The extern keyword that is used in the statement provide the function WRITTEN outside and DEFINED from outside only. 
  • The function can be given that consists of the PARAMETERS and written as mentioned like:
    • function RunTime(distance, speed) { var time = distance / speed; return time; };
  • - The return keyword that is used provides the value that needs to be returned to the function.



Discussion

No Comment Found