JavaScript return 语句 JavaScript 函数参数 JavaScript 嵌套函数 JavaScript return 语句 <html> <head> <script type = "text/javascript"> function concatenate(first, last) { var full; full = first + last; return full; } function secondFunction() { var result; result = concatenate('Zara', 'Ali'); document.write (result ); } </script> </head> <body> <p>Click the following button to call the function</p> <form> <input type = "button" onclick = "secondFunction()" value = "Call Function"> </form> <p>Use different parameters inside the function and then try...</p> </body> </html> JavaScript 函数参数 JavaScript 嵌套函数