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:
» Displaying content by using checkboxes with Java Script
» JavaScript History Back
» Moving the content of a div to another div
» Can you please tell me how to put different validations on a textfield.???
» JavaScript URLEncode?
» How to download free scripts?
» How to create an automatic follow link on mouseover?
» How to set the active accordion on top using Ext JS Javascript library?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources