jimmyshoes
Programmer
Is it acceptable to leave arguments empty
for example
is showIt(1); ok or should you always use showIt(1,null,null);
for example
Code:
<script>
function showIt(a,b,c){
if(a) alert(a);
if(b) alert(b);
if(c) alert(c);
}
showIt(1,2,3);
showIt(1);
showIt(1,null,null);
</script>
is showIt(1); ok or should you always use showIt(1,null,null);