Here is my issue hope that someone can help me:
//Declartions
var DBName = somthing; // changed dynamically
var lastPiece;
I have this string:
"../PeopleImages/GGP/Person_3281.jpg"
I want to grab "Person_3281.jpg" piece in the string save it into a variable lastPiece = Person_3281.jpg; (The last piece is been change dynamically).
and after that combined it to another string for example:
var address = "https://www.google.com/gs/companyCode="+ DBName + lastPiece ;
how can I do it in Javascript??