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

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge Solution

Jason Force
Jason Force
1,759 Points

Fails in Chrome but passes in Firefox? Ubuntu 12.04

I'm on Ubuntu 12.04. In the JS console in Chrome Version 44.0.2403.157 (64-bit) I get the following error: Uncaught TypeError: Cannot read property 'impl' of undefined However, if I run it in FireFox 40.0.3 I have no issues.

Does anyone know why? Here's the code:

var adjective = prompt("Enter an adjective");

var noun = prompt("Enter a noun");

var verb = prompt("Enter a verb");

var madLib = "I'd like to " + verb + " your " + adjective + " " + noun;

document.write(madLib);

1 Answer

Johnathon Sykes
seal-mask
.a{fill-rule:evenodd;}techdegree
Johnathon Sykes
Front End Web Development Techdegree Student 2,651 Points

Just tested this out in Chrome on my browser console by copying and pasting...passes for me.

Im on Version 45.0.2454.85 (64-bit).

There's another forum post that sort reports the same thing so it may be an odd Chrome bug. https://teamtreehouse.com/community/anyone-else-getting-error-cannot-read-property-impl-of-undefined