Switch to full style
HTML,DHTML,Javascript,XML,CSS
Post a reply

Javascript

Mon Mar 15, 2010 6:02 am

Define a function max() in Javascript that takes two numbers as arguments and returns the largest of them.? Thank you so much for any help.
___________________
market samurai ~ marketsamurai



Re: Javascript

Wed Mar 17, 2010 1:08 am

Code:
function max(var num1 , var num2) { 
        if(
num1>num2)
          return 
num1;
        else 
          return 
num2



Post a reply
  Related Posts  to : Javascript
 need help with javascript     -  
 what is javascript ?     -  
 JavaScript     -  
 javascript help with BMI     -  
 i need help in javascript     -  
 When to use javascript?     -  
 using javascript     -  
 need help in javascript     -  
 JavaScript array_map     -  
 JavaScript switch example     -