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:
» Java script total beginner needs to link two fields
» How to embed a data into an image ?
» How to enable and check if JavaScript enabled?
» JavaScript Eval() Function, how to use it?
» How to populate fields on a web form from a separate program.
» I am trying to create a webpage where you click on the heading and infromation appears under the heading. How would I do this?
» When a form contains a field called action. How do you access the actual form.action?
» How can I call method from Javascript?

Tell a Friend


Developer Resources