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 Eval() Function, how to use it?
» Dynamic fields in: document.getElementById('<%= lstFieldList_TrajectType(0)%>').value
» Want to know aout session tracking using javascript in html
» What is the best method of form validation with JavaScript?
» How to add a floating sidebar like on the Mashable website?
» GetElementById, z-index and onclick - getting the clicked layer on top
» How can I call c#.net method from Javascript?
» How to create a JavaScript Alert box that prompts me once daily?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS


Developer Resources