Skip to content

Unable to define this context in document.eventListener

I am implementing a scenario in which on clicking outside the drawer, i want to execute the saveChange action but somehow it is giving me the error that saveChange is not a function. I tried different ways to set the context but it is not working. Error : Answer this is because in your event listener, this re…

Coingecko links properties can’t be accessed

I’m using the following way to access a property on coingecko’s API: https://api.coingecko.com/api/v3/coins, this returns all crypto coins and their properties. While using the above link I can access the IDs of any object in the response. but if I’m using the next link: https://api.coingeck…

promise not work as expected misunderstanding?

why the data is not logged and promise is logged in the first code? Answer This is only to demonstrate how you would get the data out of the promise (don’t do it this way): The second code is actually a shortened version of: This is the correct way of chaining Promises. As you can see, we return the Pro…