Regarding code which is same as video

//the same code is not working in my visual studio
// here is html code

Document PREPEND APPEND
</ul>
//here is javascript code $(()=>{ let item=$('#item') let list=$('#list') $('#prepend').click(()=>{ let text =item.val() list.prepend($('
  • ${text}
  • ')) }) $('#append').click(()=>{ let text =item.val() list.append($('
  • ').html('${text}')) }) } ) //Sir or mam please help me with this
  • Can you share your full code for better understanding?