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 do I submit a form by clicking on a link with JavaScript?
» How can I round to x decimal places in JavaScript?
» Write a javascript code that verifies all textboxes has been filled.
» What is the difference between synchronous and asynchronous requests?
» How to make simple program of Contextmenu in javscript.......? plz snd me the source code of the program..
» How to embed a data into an image ?
» How to create an online voting or survey system using JavaScript?
» How to submit a form using JavaScript?

Tell a Friend


Developer Resources