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 trialVineel Aakash Koppolu
1,898 PointsWhat`s wrong with my code please help me..!
Here is my code,
Siddhant Mehra
Courses Plus Student 1,227 PointsHey Vineel , I think in prompt you are starting name from lowercase but in your student.js name every name store under an object of array starting from Uppercase...
if(student.name === search.toLowerCase()) //convert search value in lowercase
Vineel Aakash Koppolu
1,898 PointsIm sorry, i forgot to update here but I did it in my browser. Anyway the same code is running in chrome not in safari what
s wrong.
Siddhant Mehra
Courses Plus Student 1,227 Points1 Answer
Dom Talbot
7,686 PointsHi Vineel,
Your code isn't the problem. If you type a name in the alert box -> click ok -> then type in quit in the next alert box - you'll notice Safari has processed your code.
The reason its not updating after each alert - like Chrome - is due to how Safari works. Safari appears to be blocking the dom from loading, because it keeps getting alert boxes. - best guess is this is a performance / security feature of Safari.
Vineel Aakash Koppolu
1,898 PointsVineel Aakash Koppolu
1,898 PointsWTF is wrong with safari ? Same code is running properly in chrome