Jump to content

sambedas

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sambedas

  • Rank
    Newbie
  1. i am a string as below: var x = "[{date:May-2020,value:40.52}, {date:Jun-2020,value:40.52}, {date:Jul-2020,value:69.58}]"; it needs to convert as an array in javascript. Expected output : [{date:May-2020,value:40.52}, {date:Jun-2020,value:40.52}, {date:Jul-2020,value:69.58}]; How to do this? please explain in detail since i am new to javascript.
×
×
  • Create New...