function area_of_circle(r, pi) { if(arguments.length===0){ alert('you must given a parameter'); }else if(typeof arguments[0]!=='number'){ alert('you paramenter not a number'); }else if (arguments.length===1){ return rr3.14; }else{ return rrpi; } }
Sign in to make a reply
wikinee
function area_of_circle(r, pi) { if(arguments.length===0){ alert('you must given a parameter'); }else if(typeof arguments[0]!=='number'){ alert('you paramenter not a number');
}else if (arguments.length===1){ return rr3.14; }else{ return rrpi; } }