i have a array which i am getting from mysql queryconst data = [ {id:'accept', type:'Accepted'}, {id:'confirm', type:'Confirmed'}, {id:'success', type:'Success'}, {id:'recordNotFound', type:'Record Not Found'}, {id:'added', type:'Added Successfully!'}, {id:'remove', type:'Removed Successfully!'}, {id:'update', type:'Updated Successfully!'},]how can i write this in a JS file like below using node 'fs'accept: "Accepted",confirm: "Confirmed",success: "Success!",recordNotFound: "Record Not Found",added: "Added Successfully!",remove: "Removed Successfully!",update: "Updated Successfully!"
Submitted August 18, 2020 at 03:52AM by meMindFlayer
No comments:
Post a Comment