0

I am getting an 20 digit number from API call. I want to retain the number as it is in javascript. How can I achieve this? For Eg : Response from API is 123456789123456789. I want to convert this to string or retain it as number(if its possible) in javascript. Result desired "123456789123456789".

Kitts
  • 49
  • 4

1 Answers1

0

Assuming your API call function name is myAPICall:

var result = myAPICall() + "";
Webeng
  • 7,050
  • 4
  • 31
  • 59