0

The below block of code caused an error when running my node API

something.function('some string input')
[ a, b, c, d, e] = await anotherFunction(inputone, inputtwo, inputthree)

The solution seemed to be placing a semicolon like below

something.function('some string input');
[ a, b, c, d, e] = await anotherFunction(inputone, inputtwo, inputthree)

I was under the impression that having a semicolon here should be optional. This has only occurred for me when performing an assignment this way. What would be causing this issue?

Benson
  • 3
  • 1

0 Answers0