Skip to content
Advertisement

dynamically display value from an axios get request using vanilla javascript and dom manipulation

I thought the code below would do it but it gives me an “TypeError: Cannot read property ‘0’ of undefined”. how can get my data to display? I’m still new to javascript, please keep it simple and easy to understand.

JavaScript

Advertisement

Answer

You have lots of errors in your displayToDos method. It should look something like this:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement