Convert Javascript Array to JSON

i think this will be marked as duplicate but i’m unable to understand my problem.i created javascirpt array using in loop resulting array in console is[“about.png”, “about1.png”,...