Dynamic Shopping List


I feel stuck in this exercise… I’d appreciate any help!

My code: https://codepen.io/valequirozga/pen/bGpGQmL

MDN exercise (at the bottom of the website- active learning section): https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Manipulating_documents

Hello @valequirozga

hope that everything going fine with you

  1. in this line li.removeChild(value); you have to remove the whole li item so it be like that ul.removeChild(li);
    2)to clear the input
    input.textContent = ‘’;
    and to set the focus on it use input.focus(); i am sure this was misstype input(focus);

hope that help and have a nice day :slight_smile: