-1

I am running an external API that return a response with one field called 3DSecureId i try to set this field to a variable as below

const SecureId =  apiResponse.3DSecureId

I get the following error SyntaxError: Invalid or unexpected token

can someone help Thank you

Mohamed Daher
  • 417
  • 7
  • 14

1 Answers1

3

Do it this way:

const SecureId = apiResponse['3DSecureId']
David
  • 2,801
  • 1
  • 9
  • 18