JavaScript error: Response.json is not a function | Bugfixes

preview_player
Показать описание
--
Follow Me Online Here:

--
My gear:

--
Who am I?

Рекомендации по теме
Комментарии
Автор

performed all the steps above but still getting the same!

vyommodi
Автор

Awesome! Thanks for vid. I do find myself looking up the '...not a function' in the middle of a project. I am definitely saving this vid and subscribing

Geomaverick
Автор

Great vid, very succinct. For feedback, I did find the 'blip' sound when the code highlighting moves to be a little distracting annoying.

bepd
Автор

wow! a clear explanation of what i was looking for!

ralub
Автор

So this sounds really great but, as someone who's quite new to this, what does the second solution mean? how am i supposed to let that resolve?

falsestart
Автор

There is a 3rd use case as well, when the data sent by the promise itself is not a valid JSON object. Please consider the following example-

const myPromise = new Promise((res, rej)=>{
res('100');
});
myPromise.then((data)=>{const res=

Hopefully, I'm making some sense here. And thank you for the knowledge you share with us.

aruchgupta