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 Working with Strings Transform and Manipulate Strings

The lenght property is not working to me. It gives the msg: DevTools failed to load source map

I am typing the right code:

const word = 'Sesame';
console.log( word.lenght );

...But I have this persistant msg:

DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND

I disable every extension on my browser, but still the same.

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

The question was updated with code formatting. Check out the Markdown Cheatsheet below the Add an Answer submission for syntax examples, or choose Edit Question from the three dots next to Add Comment to see how I improved the readability.

1 Answer

Steven Parker
Steven Parker
230,230 Points

The correct spelling for the property you're trying to access is length (instead of "lenght").