Can someone assist with my issue? I'm struggling to comprehend this situation.
On the website, there is an AJAX call that fetches rows from a table that are not marked as read (indicated by p
). The AJAX response looks like this:
Object {data: Array[22]}
data: Array[22]
0: Object
1: Object
(etc)
Now, I want to display the value at the end of the array (which is currently 22). However, I am uncertain how to access it using JavaScript.
Your assistance would be greatly valued! Unfortunately, I cannot share the site link since it's local, but I can provide code snippets if needed.
(As this is my first job, I'm still learning the ropes)