I am attempting some, what I thought basic, string concatenation with a variable. My issue is that the variable is never displayed on screen, but I know it is assigned as if I echo
the results to screen it displays as it should. This is my syntax:
var year = datestring.substring(0,4);
if (<$php echo $salesqtr; ?> == "first") { var labelsarr = ["Jan " + year, "Feb " + year, "Mar " + year]; }
What is the proper way to append the value of year
to the month in the string above?