Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. //string manipulation
  12. concat(); //Combines the text of two or more strings and returns a new string.
  13. indexOf(); //Returns the starting index of a substring within another string. A –1 is returned if no match is found.
  14. charAt(); //Returns the character at the specified location.
  15. lastIndexOf(); // Returns the index within the string of the last occurrence of the specified value, or -1 if not found.
  16. match(); // Used to match a regular expression against a string.
  17. substring();// A portion of a string is returned. A starting and ending location are passed to this function.
  18. replace(); // Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
  19. search(); // Executes the search for a match of a regular expression. If successful, search returns the index of the match inside the string. Otherwise, it returns -1.
  20. slice(); // Extracts a section of a string and returns a new string.
  21. split();// Splits a string into an array of strings by separating the string into substrings.
  22. length();// The length of the string is returned as the count of the number of characters it contains.
  23. toLowerCase(); // Converts the entire string to lower case.
  24. toUpperCase(); // Converts the entire string to upper case.
  25. </script>
  26.  
  27.  
  28.  
  29. <script id="jsbin-source-javascript" type="text/javascript">//string manipulation
  30. concat(); //Combines the text of two or more strings and returns a new string.
  31. indexOf(); //Returns the starting index of a substring within another string. A –1 is returned if no match is found.
  32. charAt(); //Returns the character at the specified location.
  33. lastIndexOf(); // Returns the index within the string of the last occurrence of the specified value, or -1 if not found.
  34. match(); // Used to match a regular expression against a string.
  35. substring();// A portion of a string is returned. A starting and ending location are passed to this function.
  36. replace(); // Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
  37. search(); // Executes the search for a match of a regular expression. If successful, search returns the index of the match inside the string. Otherwise, it returns -1.
  38. slice(); // Extracts a section of a string and returns a new string.
  39. split();// Splits a string into an array of strings by separating the string into substrings.
  40. length();// The length of the string is returned as the count of the number of characters it contains.
  41. toLowerCase(); // Converts the entire string to lower case.
  42. toUpperCase(); // Converts the entire string to upper case.
  43. </script></body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement