Advanced Computer
Javascript
Assignment 4a - Working with Numbers.
<html> <head> <script type= "text/javascript" src="multi.js"> </script> </head> <body onload = "call_alert(4)"> </html>
// Function to call a 2nd function, display result. function call_alert(
num ) { var new_num
= make_double( num ); alert ( "The Value Is " + new_num
); } // function 2 function make_double(
num ) { var double_num
= num + num; return double_num; }