I have a variable that I would like to append added to some other text. My first though was this:
var wood = 5
$(wood+"<p>bits of wood left</p>" ).appendTo("#notifications");
Then I tried this:
var wood = 5
var woodLeft=(wood + "wood left");
$(woodLeft).appendTo("#notifications");
But that doesn't work either. Any ideas of how to get this to function?