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 Foundations Strings Methods

I got, error saying that task one is not longer passing. but I haven't touched them.

sometimes the application force me to redo all the tasks without no reason. the first task is not broken.

index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <title> JavaScript Foundations: Strings</title>
    <style>
      html {
        background: #FAFAFA;
        font-family: sans-serif;
      }
    </style>
  </head>
  <body>
    <h1>JavaScript Foundations</h1>
    <h2>Strings: Methods</h2>
    <script>
      var quick = "The quick brown fox jumps over the lazy dog";

          var quickLength    = quick.length;

          var indexOfBrown = quick.indexOf("brown");
          var tenthCharacter = quick.charAt(9);
          var wordBrown = quick.substr(10,5);
          var quickUpper = quick.toUpper();





    </script>
  </body>
</html>

2 Answers

I see what you're saying, Ida Brogie. The error given should not cause the first task to stop passing the test especially since the later tasks do not involve the first variable and the string variable quick is never changed in the later tasks. That looks like a bug within the challenge. I'll write up an error report and send it to the help desk.

thank you! I got the same problem on another task in the course. on this one :http://teamtreehouse.com/library/javascript-foundations/arrays/methods-part-1-2

Hi Ida,

The method for changing a string to uppercase is toUpperCase(). Please let us know if your code is still not working after this. Edit: perhaps I misunderstood - this is a bug hunt and not how to advance. sorry :)

i's ok, now I have the answer and got the badge! :)