How can i change the value of a variable after it has been assigned in js? (But not by editing the code) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i change the value of a variable after it has been assigned in js? (But not by editing the code)

I have declared an array in which i have stored the prices of food items. Now, anytime the prices change or the user wants to chane them, the user must be able to change them not by editing the code but through the webpage only so that the price in the array gets modified and it should be saved for next time when the browser opens.

20th Jul 2017, 6:12 AM
Rishubh Naik
Rishubh Naik - avatar
1 Answer
+ 5
if you want to store values use dbms. and to change values use loops.
20th Jul 2017, 7:08 AM
Sumit
Sumit - avatar