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 uploading form in asp to mysql
» How can I break up a string in JavaScript like explode in PHP?
» Catching up events outside an iframe
» How to create an online voting or survey system using JavaScript?
» Word Count in JavaScript, how to count the number of words?
» How can I create Facebook applications?
» How to validate the textbox value in html
» How to set the active accordion on top using Ext JS Javascript library?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources