0
var url = settings.basePath +"localhost"

if(queues.length>0) {
  tempalteMsg += "Queues"+ "<a href='url>'</a>"
}

how do I refer to the url var in that a tag string?

Nick Parsons
  • 45,728
  • 6
  • 46
  • 64
codeflower
  • 75
  • 1
  • 8

1 Answers1

1

you can use a template literals

var url = settings.basePath +"localhost"

if(queues.length>0) {
  tempalteMsg += "Queues"+ "<a href='${url}'></a>"
}
Eriks Klotins
  • 4,042
  • 1
  • 12
  • 26