You can use the slug variable in a template literal . Something like this:
let slug - results.items[0].slug;
let profiler = `https://wixsite.snoodlet.ferazon/profile/${slug}`;
To get the current user’s name, you will need to use the backend getUser() function. In any case, using the backend is recommended for privacy and security issues.