JS String - Not getting printed

console.log(('#list')) (() =>{
let item = $(’#item’)

$('#prepend').click(()=>{
   let text =item.val()
   $('#list').prepend($('<li>').html('<b>$(text)</b>)')
})

})
in this code, my last line (the one having html) is not running. Pls help me debug the problem in this case.

Try innerHTML I don;t think we can apply .html() method to append or prepend

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.