Total members 9950 | Gratitudes |It is currently Sat Feb 11, 2012 3:05 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: Javascript
PostPosted: Mon Mar 15, 2010 6:02 am 
Offline
Newbie
User avatar

Joined: Thu May 14, 2009 5:49 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time

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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Javascript
PostPosted: Wed Mar 17, 2010 1:08 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2103
Location: Earth
Has thanked: 39 time
Have thanks: 56 time
Code:
function max(var num1 , var num2) { 
        if(
num1>num2)
          return 
num1;
        else 
          return 
num2


_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 getting gst, pst total to diplay in my javascript form  Scripting Language  Anonymous  0
 need help with javascript  Scripting Language  triscuit  0
 Javascript select menu validation issue  Scripting Language  Anonymous  0
 validate age entered as selection box in javascript  JavaScript examples  msi_333  0
 Trim string in JavaScript  JavaScript examples  msi_333  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 2 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team