Welcome to the Treehouse Community
Looking to learn something new?
Why is task 1 no longer passing?
In the previous slide task 1 one was running ok, and isn't anymore. I don't understand why task 2 broke task 1
var fullName = document.getElementById("full_name"); var lastName = document.getElementByClassName("last_name");
<!DOCTYPE html> <html> <head></head> <body> <h1 id="full_name"><span class="first_name">Andrew</span> <span class="last_name">Chalkley</span></h1> <script src="app.js"></script> </body> </html>
Code technically not correct. Arrays starts with . There is no ("last_name") element. Hope it will resolve the problem you have now.
Jeff Lemay14,267 Points
The task is asking you to "select the second SPAN element". So instead of using getElementsByClassName, you'll use getElementsByTagName to target the span instead of the class.
(I think your code is technically correct but the challenges are looking for very specific code in order to pass)