How to concatenate a string and variable in a script

How can I concatenate a string and a variable in a script ?

I have tried several options and I can’t get it to work, here is what I tried

var varURL = “https://www.google.com/maps/place/$varTest”;
var varURL = "https://www.google.com/maps/place/’+$varTest;

Is there a “concatenate” function ?

Forget it I found it

var varURL = “https://www.google.com/maps/place/” + varTest;

1 Like