im able to do this
[a, b] = await function1(a, b)
but when i do this
[a, b] = await function1(a, b)
[a, b] = await function2(a, b)
i get this error message
SyntaxError: Invalid left-hand side in assignment expression
[a, b] = await function1(a, b)
^
[a, b] = await function2(a, b)
i have found a work-around but would like to know if theres a way to make my example work.
thanks in advance