I’m trying to display my data being sent from the server but it’s not coming through properly (see [Object object] in the bottom left of the image above). Here’s the client side code: The server is sending the data in an array in below format: I want the values from totalGuests and attendedGuests to display on the client. Here’s my
Tag: client-server
How to display comments from a JSON server using javascript and HTML?
I am making this website project where people can leave comments and the webpage will dynamically display the comments without reloading the page. My comments are stored in an array in my server in the format Allcomments=[ { username: ‘username’, info: ‘title’, commentinfo: ‘commentinfo ‘ }]. I am currently receiving this error when I try and run my code Uncaught