Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJonathan Aldas
2,421 PointsIt says document.gerElementsByTagNames is not a function
const myList = document.gerElementsByTagNames("li"); for(let = i; i<myList.length; i++){ myList[i].style.color= "red"; }
I have no idea why it says that please help.
Jonathan Aldas
2,421 PointsThank but it still does not work. Still get the same error
const myList = document.getElementsByTagNames("li");
for(let = i; i<myList.length; i++){
myList[i].style.color= "red";
}
error: ==> app.js:1 Uncaught TypeError: document.gerElementsByTagNames is not a function
2 Answers
Tobiasz Gala
Full Stack JavaScript Techdegree Student 23,529 PointsYour error still shows ger so you probably need to refresh the page or console. Also, there should be name not names at the end
Jonathan Aldas
2,421 PointsThanks!
Dima Gorban
131 PointsJesus, can't believe how retarded people can be.
Michael Johnson
6,340 Pointslol with your 130 points
Tobiasz Gala
Full Stack JavaScript Techdegree Student 23,529 PointsTobiasz Gala
Full Stack JavaScript Techdegree Student 23,529 PointsgetElementsByTagName // change r to t