Uncaught reference error: .. is not defined .. but I can see the variable in the error string
===

This line of code `		var $sTest = <?php echo $a = $_GET['ID']?>` returns a "Uncaught reference error: .. is not defined."  

For this question, if we assume I am passing an ID of "ABC."  When I use the Developer Tools in Chrome and inspect the Resources, I can see that the $_GET **has** worked because it shows me the variable value.  The error message in this case is "Uncaught reference error: ABC is not defined."

I can't work out how to assign the php variable to a script var.  Help appreciated.

