@kode
Aspiring Software Developer (Javascript)
Nothing here yet.
Nothing here yet.
No blogs yet.
The concept is more of an admin-standard user settings. The admin set global preferences for all users while also the standard users will be able to set their individual preferences. In summary, the admin will set a global preference for all user to follow (this will definitely be saved in server so it affects all), while the user can further customise some other local setting which can either be saved in server or local but local storage would be better.
cedric simon You read my thoughts, this is exactly what i meant, i am sorry for the mix up in my question, i am editing it now. I wanted to say functions/API and not syntax, reading a lot this days got me so overwhelmed i mistook the 2 words for each other. Thank you very much for the correction.
Shreyansh Pandey Thank you very much. Though i am a newbie, i just wanted to have an idea how experienced programmers manage this. I guess the trick is the more you code, the more you get used to the syntax and all.
Jason Knight This was really helpful, thank you. However, i would love to point out somethings. In regards to putting the script right before the closing body tag, i read its a bad practice as we might sometimes require some script to run before the DOM finish loading which might cause some inconsistency. This was my reason of putting it in the head tag. I really love the idea of passing document as d, this is so badass way of writing quickly without having to write document all the time, however, i got confused at the last part when you passed document into the (). Also, where you intercepted the submit on the form instead of the button looks confusing to me. I really didn't see where the button was made to respond on the code but somehow, it worked. I will study this code more to better understand. Thank you very much.
For me, i see codes as being magical. I really cant point out my motivation but one thing is that, seeing lines of code fascinates me and i decided to take the leap and start coding too. Hopefully someday in my coding journey, i will be able to realize my motivation that lead me into coding.