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 URLEncode?
» What is the best method of form validation with JavaScript?
» Could anyone provide a javascript to send an email
» Displaying content by using checkboxes with Java Script
» How can I do a JavaScript string replace on a specific character in a string?
» How to limit in real-time the number of characters in textarea with JavaScript?
» How can I round to x decimal places in JavaScript?
» How to use Javascript to produce a dynamic population clock?