5. The return statement is used to specify the value that is returned from the function.
< html >
< head >
< script type = " text / javascript " >
function add( a , b )
{
return a + b ;
}
< / script >
< / head >
< body >
< script type = " text / javascript " >
document.write ( add ( 10 , 13 ) ) ;
< / script >
< / body >
< / html >
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment