Babblecrap !gemini06720 wrote:.... most if not all of the variables (or tags) should be placed between single or double quotes. The only variables that do not need to be placed inside quote marks are the 'true/false'.
I know some people are going to tell me that a script will still work when the quotes are not used, but that is sloppy programming...
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
a= '1.2';
b= '5.4';
a1= a+b;
document.write('Quoted 1.2 + 5.4 = ' + a1 +'<br />');
// Results in
// Quoted 1.2 + 5.4 = 1.25.4