Quote:
Originally Posted by turtleflame
When I eliminated the line breaks it didn't change anything but when I removed all of the parentheses it did work. Thank you.
|
Not so. The line breaks are your problem - easily demonstrated.
Code:
var cTemp = 100; // temperature in Celsius
// Let's be generous with parentheses
var hTemp = ((cTemp * 9) /5 ) + 32;
alert (hTemp); // 212
BTW, do please read the posting guidelines regarding silly thread titles. The thread title is supposed to help people who have a similar problem in future. Yours is useless for this purpose. You can (and should) edit it to make it more meaningful.