Liz Anaya Ramos
·Developer Community Manager @ Xano

Text Substitution - Challenge #18


Objective: Substitute text within a URL using a dynamic variable.

Instructions:

  1. Define the Base URL:

    • Create a variable named base_url and assign it the value https://api.example.com/users/%s/details.

  2. Create a Dynamic User Name:

    • Create a second variable named user_name and assign it the value CakeLover.

  3. Combine the URL and User ID:

    • Create a variable named final_url and use a filter to combine base_url and user_name so that the %s in base_url is replaced with the value of user_name.

  4. Submit your result contained in the variable final_url.

Expected Result:

Submit the variable final_url as your answer. See example below:


Install the snippet to get started: https://www.xano.com/snippet/XwN5GThx