Cookies in Vanilla JavaScript only 1. Cookie (read, write and delete cookie): A form (first name, last name , email etc)

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Cookies in Vanilla JavaScript only 1. Cookie (read, write and delete cookie): A form (first name, last name , email etc)

Post by answerhappygod »

Cookies in Vanilla JavaScriptonly
1. Cookie (read, write and delete cookie): Aform (first name, last name , email etc) should save a cookie fromone page, then read this cookie on anotherpage. This must use at least two separatepages.
i) If no cookies ,then alert no cookie found. If cookie is there ...then cookieis saved.
2. More than one field from the first page must be read onto thesecond page. For example “Shopping cart” that gives the user theability to review submitted data on another page.
that means cookies/results on, Displayingsaved cookies/results on the other page.
3. Your cookie must persist for 2years so that it will still be available if thebrowser is closed and re-opened. This must be dynamic, so it willbe always 2 years from the current year.
4. Add the ability to delete the cookie (for example “Clearshopping cart”)
5. Show the current date and time on bothpages, nicely formatted for the user, and clearlyvisible. Use 12 hour clock, (i.e.:1:30PM) 6. JavaScript source code is well-formatted and easy toread.
7. Use JavaScript comments whereverpossible. Please explain what the code isdoing.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply