So, Im currently taking classes to start a career in the coding industry, and Im stuck on this exercise:
Inside the div below, insert a span tag that has a class name of content and says "You got this!".
<div id="wrapper"></div>
Ive been at this for a couple days now, and this is the best attempt I think I've had so far.
var span = document.createElement('span');
span.className = 'content';
var text = document.createTextNode("You got this!");
wrapper.appendChild(text);
document.getElementById('wrapper').appendChild(span);
Any help would be appreciated, thank you.