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:
» How to set the active accordion on top using Ext JS Javascript library?
» How to use Javascript to produce a dynamic population clock?
» How can I resize a window to a specific size using JavaScript?
» How can I do a for loop in JavaScript?
» Javascript cookies to redirect user if submit button is already hit.
» How can I count the length of string with JavaScript?
» How can I automatically submit a form using JavaScript?
» How to validate the textbox value in html

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources