×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Randy Marsh
Added: Mar 14, 2014 9:00 AM
Views: 61
Tags: no tags
  1. var quick = "The quick brown fox jumps over the lazy dog";
  2.  
  3. //Update the variable of 'quickLength' on line 18, to assign the length of the string 'quick'.
  4. var quickLength = quick.length;
  5.  
  6. //Update the variable of 'indexOfBrown' on about line 19, to find the index of the string of "brown" in the string 'quick'.
  7. var indexOfBrown = quick.indexOf("brown");
  8.  
  9. //Update the variable of 'tenthCharacter' on about line 20, to get the tenth character of the string 'quick'.
  10. var tenthCharacter = quick.charAt(9);
  11.  
  12. //Update the variable of 'wordBrown' on about line 21, to extract the substring of "brown" from the string 'quick'.
  13. var wordBrown = quick.substr(10,5);
  14.  
  15. //Update the variable of 'quickUpper' on about line 22, to the uppercased version of the string 'quick'.
  16. var quickUpper = quick.toUpperCase();
  17.  
  18. //Update the variable of 'quickLower' on about line 23, to the lowercased version of the string 'quick'.
  19. var quickLower = quick.toLowerCase();