A small correction, @5:36 you mention that the .json method is used to convert to JSON, however it is used to return the json part of the entire response, which contains the data. It returns a promise, which is why we use another .then as a follow-up.
Sir, in mu web-project, I had all my form values stored in *localStorage*. So I've implemented Fetch api, exactly like you did, and stored all the values from the *localStorage* into the body of the api. But when I try to print my post array in php using *var_dump($_POST);*, I get an empty array. What am I doing wrong here?
I have a question: if you refresh your html, the two elements (..) will disapear ? Or not ? If not, can u explain me why ? Or if yes, can u explain me how to avoid they disapear after refresh ?
Yes, they disappear because they were created using JS dynamically(The change is only on the client side) . To avoid them disappearing we use databases, where there is a permanent storage.
Hi Please checkout my Coding Shiksha Android Play Store please check out my apps published and install the apps and give some feedback if it's great here is the link for my google play developer page: bit.ly/3YIVgQP