为什么会出现这种情况: 3 undefined 3 undefined 3 undefined 3 undefined 3 undefined 3 undefined?
<html>
<body>
<script>
function addMethod(a,b){
var sum;
sum = a+b;
document.write(sum + '<br>');
}
for(var i=6;i>0;i--)
{
document.write(addMethod(1,2)+"<br/>");
}