I have this JSON file
projectsJSON = [
{"name" : "Hotel"},
{"name" : "Inventory"},
{"name" : "Corp. Manager"}
];
And this code in `javascript.js
let getProjects = projectsJSON
getProjects.push({
"name":name
});
projectsJSON = JSON.stringify(getProjects);`
My goal is to add a new object to projectsJSON
,but this code is not working.When i print out projectsJSON
it does show the added object,but file doesn't get changed.