Task 3: Add a New Locker Here you will write the function to add a new locker to the LockerList instance. All code in th
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Task 3: Add a New Locker Here you will write the function to add a new locker to the LockerList instance. All code in th
Task 3: Add a New Locker Here you will write the function to add a new locker to the LockerList instance. All code in this task should be written in main.js. 1. Write a function addNewLocker This function is responsible for the interaction with the user to create a new locker using the addLocker method in the LockerList class. is this the first locker? No Generate an id based on the last locker id (incrementing sequence) Yes id is A001 Call Lockerlist method addLocker with the id Update locker display on page using displayLockers function Update Local Storage
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!