If I'm reading data "array" from javascript file, and I want to change an element value in the array, how can I apply this update on the javascript file "save the javascript file with new value".
var country = document.getElementById('edit_country').value;
for (i = 0; i < country_arr.length; i++) {
if(country_arr[i] == country) {
var city = "|".concat(document.getElementById("add_city").value);
city_arr[i] = city_arr[i].concat(city);
}
}