Challenge: Using Literal Strings
Challenge yourself by updating the "getUserEvents" function to use string literal in place of string concatenation for API string.
We'll cover the following...
Problem statement
In service methods like getUserEvents
, the API string is concatenated with the “ID” to create the full API string. Another method uses template literal strings. Without breaking any of ...