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:
» GetElementById, z-index and onclick - getting the clicked layer on top
» How to download free scripts?
» How can i control my check box?
» Word Count in JavaScript, how to count the number of words?
» How can I automatically submit a form using JavaScript?
» How to use JavaScript unload event?
» Phone number validation
» Dynamic fields in: document.getElementById('<%= lstFieldList_TrajectType(0)%>').value

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources