var circle;
var love = 30;
document.getElementById("output"). innerHTML=("
The Circle is __ Units with an Area of __
<svg version='1.1'
width='360' height='300'
xmlns='http://www.w3.org/2000/svg'>
<circle cx='50%' cy='50%' r='" + love + " %' stroke='black'
stroke-width='2' fill='red'/>
</svg>");
I know there is a syntax error in here, and I am sure it has to do with the multitude of quotes in the block. Should I make it into smaller strings and combine them. Kind of like .= with PHP? (The whole point of the block is to set the SVG radius{r} to variable love.) - Thanks Josh
Edit 2 # (Thanks to the Communities Support, Here is some nice neat Working Code)
var love = 30;
var va1 = "The Circle is __ Units with an Area of __ ";
var va2 =" <svg version='1.1' width='360' height='300' xmlns='http://www.w3.org/2000/svg'>" ;
var va3 = " <circle cx='50%' cy='50%' r='" ;
var va4 = "%' stroke='black' stroke-width='2' fill='red'/> </svg>";
document.getElementById("output"). innerHTML=(va1+ va2 + va3 + love +va4);