Helping ordinary people create extraordinary websites!
SIGNUP
LOGIN
HOME
ARTICLES
TUTORIALS
SCRIPTS
ANSWERS
ONLINE SERVICES
TOOLS
FORUM
Get Answers
»
Computer Programming Help
»
JavaScript Help
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
Tweet
Ask a Question
Save
Watch
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?
GET OUR NEWS
Connect With Us
Online Services
Domain Names
Hard Drive Recovery
Internet Marketing
Online Backup
Online Training
Payment Processing
SaaS
Software Escrow
Web Design
Web Development
Web Hosting Directory
Developer Resources
Tutorial Directory
Learn HTML
Learn PHP
Learn CSS
Learn AJAX
Learn JavaScript
Learn Pear
White Papers
Resources
Webmaster News
Developer Content