为什么结果会出现16 undefined12 undefined的情况,求解答!
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数传参</title>
<script type="text/JavaScript">
function add3(x,y,z)
{
sum = x+y+z;
document.write(sum+"<br/>");
}
document.write(add3(5,8,3));
document.write(add3(7,1,4));
</script>
</head>
<body>
</body>
</html>