I have an object named promise and it has functions and string inside it. For printing the object i can use
console.log(promise);
but i have a string named "responseText" inside promise. If i try to print it using
console.log(promise.responseText);
,its showing as undefined. I can see the value of responseText by printing the object. But when i print using promise.responseText its showing undefined.
FYI
I am able to print all the functions inside promise, but I am not able to print the string. Please help.
responseText !== responsetextconsole.log. The classic async problem.