function test(number) {
while(number < 5) {
number++;
}
return number;
}
alert(test(2));//结果为:
function hello(){
var name = ("你的姓名是:");
document.write("你好:"+name);
}
hello();
function max(a, b) {
(a >= b) return ;
return b;
}
function test(a, b) {
if(a > b) {
return a*b;
} else {
return b / a;
}
}
alert(test(5, 15));
//