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 trial
Purdey Chambraud
4,807 PointsWorks fine on firefox and Safari but not in chrome?
Hi !
All the code works fine on firefox and Safari but not on chrome on which I have this error on the console : index.html:81 Uncaught TypeError: recentSearches.forEach is not a function at window.onload (index.html:81) window.onload @ index.html:81
My code is the same as the teacher because we didn't have to change that part
// Initialize display list
var recentSearches = getRecentSearches();
recentSearches.forEach(function(searchString) {
appendListItem(recentSearchList,searchString);
});
If you have a clue regarding that problem or if you don't have that problem on chrome it will be helpful for me to know what's going on.
Bye from France!
Jordan Hoover
Python Web Development Techdegree Graduate 59,268 PointsJordan Hoover
Python Web Development Techdegree Graduate 59,268 PointsSo it looks like the problem is with the getRecentSearches() method. What code do you have for that method?