Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

What will the console log? let a = 50; console.log ( a +"+50") Answers 5050 O 50+50 100 o o 50 Add Save changes Deletei

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

Students also viewed these Databases questions