How do i use local storage to allow someone to comment and then to show saved comments

Avatar
  • updated
  • Answered

Am still new to JavaScript but working on some project. I need to allow someone to be able to comment and then show the saved comments. Am supposed to be using local storage to achieve this though have no idea of how.

Pinned replies
Avatar
anonymous
  • Answer
  • Answered

Hello, and welcome to the exciting world of JavaScript! 

I'll do what I can to help, but the truth is that most of our staff and Support Agents specialize in servers, Linux, back-end languages like PHP, and WordPress. Outside of WordPress and specialized situations, our support team doesn't get involved with front-end coding with JavaScript as much. 


That said: I did find a StackOverflow question that seems to be headed in the right direction(don't look at the initial question, but a bit further down where another commenter said 'try this'). Now, this comment is from six years ago, so you'll need to update it a bit for modern JavaScript best practices and to fit your situation, but this seems to be headed in the right direction. 


Further, I have not watched the entire video yet, but this video walkthrough on the subject seems to be a very detailed look at how to do this if you want a more hands on tutorial than the above sample. 

Hope that helps!

Avatar
anonymous
  • Answer
  • Answered

Hello, and welcome to the exciting world of JavaScript! 

I'll do what I can to help, but the truth is that most of our staff and Support Agents specialize in servers, Linux, back-end languages like PHP, and WordPress. Outside of WordPress and specialized situations, our support team doesn't get involved with front-end coding with JavaScript as much. 


That said: I did find a StackOverflow question that seems to be headed in the right direction(don't look at the initial question, but a bit further down where another commenter said 'try this'). Now, this comment is from six years ago, so you'll need to update it a bit for modern JavaScript best practices and to fit your situation, but this seems to be headed in the right direction. 


Further, I have not watched the entire video yet, but this video walkthrough on the subject seems to be a very detailed look at how to do this if you want a more hands on tutorial than the above sample. 

Hope that helps!