New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Problem in your code was naming 2 variables with same name, also you forgot to append this seccond paragraph to body, thats why in console it show that selected element is "null" - does not exist
https://code.sololearn.com/WGxQdRtbyVdS/?ref=app