I recently started learning java and javascript and I've encountered an issue.
So, I have a string-formatted array in JavaScript that looks something like this:
[[0,'Apple','Banana'],['The Apple fruit, comes from Apple Tree', 'The Banana fruit, comes from Banana Tree']]
My goal is to extract the first array [0,'Apple','Banana']
and store it as a separate array. Then, I want to access the second array
['The Apple fruit, comes from Apple Tree', 'The Banana fruit, comes from Banana Tree']
and display it as text in a text area like so:
The Apple fruit, comes from Apple Tree
The Banana fruit, comes from Banana Tree
Could someone guide me on how to achieve this using JavaScript?
I would really appreciate any help as I've been extensively researching this problem online.
Thank you in advance.