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 …

Getting elements from multiple html pages into javascript

I have two html pages called home.html and about.html. And I also have a js file called main.js which is linked with both of the html pages.I have a div with a class of “home” in home.html …

How can I get the specific user information from the list of users upon click in Javascript?

I am writing a firebase mini chat web app where an admin can be able to privately chat with all the authenticated users. so I used the firebase cloud-function to fetch the list of all users, code: 👇 /…

Appending a DOM element twice (jQuery)

Can someone explain why the following snippet does not add to both #a and #b? HTML:

JS: $(function(){ var $foo = $(“&…