I am trying to pass a dynamic variable and I cant get it to work.
This code works, it returns the artist Kanye West through the API:
searchOptions = { name: 'Kanye West', fuzzy_match: true };
When I try to insert a string variable it doesn't work.
Like such:
var artistname = "Kanye West";
searchOptions = { name: +artistname, fuzzy_match: true };
How can I get it to work?
Please help! I really appreciate it