-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
  • 609
  • 1
  • 10
  • 23

1 Answers1

3

Do it this way:

const SecureId = apiResponse['3DSecureId']
David
  • 3,552
  • 1
  • 13
  • 24