Friday, November 6, 2009

return Statement

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 >

No comments:

Post a Comment