JavaScript How to extract multiple hashtags from a JSON object?

I am trying to extract "animal" and "fish" hashtags from the JSON object below. I know how to extract the first instance named "animal", but I have no idea how to extract both instances. I was thinking to use a loop, but unsure where to start with it. Please advise.

data = '{"hashtags":[{"text":"animal","indices":[5110,1521]},
        {"text":"Fish","indices":[122,142]}],"symbols":[],"user_mentions":
        [{"screen_name":"test241","name":"Test 
        Dude","id":4999095,"id_str":"489996095","indices":[30,1111]},
        {"screen_name":"test","name":"test","id":11999991,
        "id_str":"1999990", "indices":[11,11]}],"urls":[]}'; 

function showHashtag(data){
   i = 0;
   obj = JSON.parse(data); 
   console.log(obj.hashtags[i].text);
}

showHashtag(data);
Answer:1

What does mean 'get' inside a javascript function?. This 'get' is used many time in the return. I stumbled upon this code: var getHost = function () { return { get linux() { ...

What does mean 'get' inside a javascript function?. This 'get' is used many time in the return. I stumbled upon this code: var getHost = function () { return { get linux() { ...

  1. what does mean in math
  2. what does mean mean
  3. what does mean in text
  4. what does mean in python
  5. what does mean in excel
  6. what does mean in java
  7. what does mean in measuring
  8. what does mean in c++
  9. what does mean in r
  10. what does mean in spanish
  11. what does mean on snapchat
  12. what does mean in javascript
  13. what does mean in sql
  14. what does mean in geometry
  15. what does mean in statistics
  16. what does mean in coding
  17. what does mean national emergency
  18. what does mean absolute deviation mean
  19. what does mean in matlab
  20. what does mean in linux

I would like to draw a horizontal target line showing threshold limits on a line, bar and pie chart using EChart.JS (https://ecomfe.github.io/echarts-doc/public/en/index.html). There are other ...

I would like to draw a horizontal target line showing threshold limits on a line, bar and pie chart using EChart.JS (https://ecomfe.github.io/echarts-doc/public/en/index.html). There are other ...

I have a top page which contains an iframe with untrusted content. I am hosting the untrusted content on a domain that I control, and can (in theory) make changes to it. Short of analyzing the source ...

I have a top page which contains an iframe with untrusted content. I am hosting the untrusted content on a domain that I control, and can (in theory) make changes to it. Short of analyzing the source ...

new guy here. I have a feeling this is an extremely basic question but I can't get this Jquery code to write the output of the function to html and have it show up. I believe it's an issue with the ...

new guy here. I have a feeling this is an extremely basic question but I can't get this Jquery code to write the output of the function to html and have it show up. I believe it's an issue with the ...

  1. canvas
  2. canada
  3. cancelled
  4. canceled vs cancelled
  5. cancun
  6. canada goose
  7. cane corso
  8. canes
  9. canadian prime minister
  10. cancun flights
  11. canker sore
  12. candy
  13. cancer
  14. canon
  15. canvas prints
  16. cancer sign
  17. candace owens
  18. canada news
  19. candytopia
  20. canlis