Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
.this() and .catch() - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
4 replies
siuuu
.this() and .catch()
fetch
(
"
https://pokeapi.co/api/v2/pokemon/pikachu");//
to fetch third party API
's
.then
(
(data
)
=
>console
.log
(data
)
)
;
.catch
(
(error
)
=
>console
.error
(error
)
)
;
so in vs code
.then
(
) or
.catch
(
) methods says
. is unexpected token
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
async function/promises vs try and catch
KP-C
Kevin Powell - Community / front-end
2y ago
DIVS! Gotta catch em all | Semantic component
KP-C
Kevin Powell - Community / front-end
3y ago
Why is my TRY ... CATCH not working?
KP-C
Kevin Powell - Community / front-end
3y ago
styling <ul> and <li>, what can prevent this?
KP-C
Kevin Powell - Community / front-end
2y ago