Troubleshooting
There are some common mistakes you might run into when trying to get JavaScript code to work in Make. I'll list some of them here, but if you're still having problems join the Slack community and I'll help you to get the JavaScript code Make compatible.
Many errors occur if, for example, a JSON object is used in the input field, but you do not pass a valid JSON with correct quotation marks.
{"firstName": "Henrik", "lastName": "Foo"}
{firstName: "Henrik", lastName: "Foo"}
"
“
Usually inline comments work as long as there are proper line breaks in the code. But if you have problems just remove them.
const sum = x * y * input;
return sum;
const sum = x * y * input;
return input.firstName + ' ' + input.lastName;
// return full name
return input.firstName + ' ' + input.lastName;