Facebook
From Dishank, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 169
  1. const bugging = `{
  2.  "bug":["Google Map not aligned properly and its displayed on home page rather than contact page","One function is not working or not defined properly " ],
  3.  "feature":["Can add better slider ", "Add animations to help user to get good idea of product"],
  4.  "accessibility":["Not responsive enough and too much to read to get info of product "]
  5. }`
  6.  
  7.  
  8. const buggedJson = JSON.parse(bugging);
  9.  
  10. for(const key in buggedJson) {
  11. if(buggedJson.hasOwnProperty(key)){
  12. const display = buggedJson[key];
  13. console.log(`${key}:${display[0]}`);
  14. }
  15. }