I am running a small javascript code after calling a few apis & passing data into the code, but that throws a SyntaxError: missing ) after argument list in console every time it is run.
Can someone help with what might be wrong with this code?
You don’t need to add quotes if you are using “formatted as json safe”
anyway you can write your code, without the dynamic expression, in any text editor with a javascript linter and check the syntaxt. This way you get the line where the error is. You can also search a javascript syntax checker online.
If everything is correct then you need to check what it is that you have in your dynamic expression. It’s not clear what it returns (eg. a string, an array, an object)