Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hey i am new to this JS and website development . Any hint for how to write the code for Add save changes, and delete
Hey i am new to this JS and website development . Any hint for how to write the code for Add save changes, and delete function on JS?
-
There shall be an add button underneath the last created question and a delete button
Pushing the add button - 1- updates the JSON stored in the localStorage
- 2- open a new blank question ( 5 textarea elements, one for question body and 4 for the choices and their radio buttons)
- Pushing the delete button
- 1- removes the last question from the screen
- 2- updates the JSON in the localStorage accordingly
Pushing the save button
updates the JSON in the localStorage based on the current data at current page ( reads the textareas and updates the JSON)
The admin can add as many as questions as they wish
What will the console log? let a = 50; console.log ( a +"+50") Answers 5050 O 50+50 100 o o 50 Add Save changes DeleteiStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started