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
  • 38,409
  • 6
  • 31
  • 57
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
  • 3,804
  • 1
  • 10
  • 24