A small but practical challenge. Write a function that replaces variables in a string using values from an object or dictionary. We’ve got a compact JavaScript version that does it in 61 characters using regex. Can you come up with a shorter solution? Use any language but make sure your solution can handle missing keys and repeated variables. Share your approach below!
Subscribe to Google for Developers → https://goo.gle/developers
Speakers: Christine Rafla
Subscribe to Google for Developers → https://goo.gle/developers
Speakers: Christine Rafla
- Category
- Project
- Tags
- Google, developers, pr_pr: Google for Developers;
Sign in or sign up to post comments.
Be the first to comment




