My append and prepend code is not working

here is my code. please look into it and mention where i have made mistake

Your link is not opening can you share it again?

html code https://ide.codingblocks.com/s/447199
js code https://ide.codingblocks.com/s/447200

my AJAX operation code is also not working. please do have look into it
html code https://ide.codingblocks.com/s/447202
js code https://ide.codingblocks.com/s/447203

Okay first of all you need to use: => instead of --> in arrow function.
and use ` (backtick) instead of ’ (inverted comma) in text.
Use ${text} in append also

Here is the correct code: https://www.w3schools.com/code/tryit.asp?filename=GOXNAJA2YR0Z
Copy code under script tag in your js file

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.