My code:
var username = some_username;
view.open({ 'post' : '//domain.com/url/person/" + username + "'});
});
username is a variable and I want that variable to be inserted after //domain.com/url/person/". I am new to JS so struggling with this. I was able to do it for other statements using the "+" function but can't seem to get it for this one. What am I doing wrong?
+ "'at the end. Just use'//domain.com/url/person/" + username