this.baseURL , this.searchTerm and this.tailURL are all undefined at this point in the object literal. You must create the final URL in a separate statement:
var urlProps = { searchTerm: "searchSTUFF", baseURL: "https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exsentences=1&exlimit=10&exintro=&explaintext=&titles=%20&generator=search&gsrsearch=", tailURL: "&rawcontinue=&callback=?" }; urlProps.finalURL = urlProps.baseURL + urlProps.searchTerm + urlProps.tailURL;
An object exists only after the operator with the object literal and inside the this object literal points to the window object (or regardless of context), and not to the object that will be created.
source share