Helping ordinary people create extraordinary websites!
   

How to do calculations using JavaScript

Monday, 15th March 2010
by Toffer

Hi guys I am new to JavaScript and am looking for help trying to find out the values of the following numbers and was wondering if you could help me?

First = 6;
second = first - 4
first = 2+2 * first - second;
second = first / 2;

Any help with this would be greatfully received





More JavaScript Help:
» JavaScript String Functions
» How to create an online voting or survey system using JavaScript?
» How can I create a select all link for my text area with JavaScript?
» How can I create Facebook applications?
» Could anyone provide a javascript to send an email
» How to make simple program of Contextmenu in javscript.......? plz snd me the source code of the program..
» Send mail to user when he had submitted data in database
» How can I round to x decimal places in JavaScript?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources