Level 1M2Lesson 2.4

beginner40 minby DevFox

Working with strings: common methods

Call a string’s methods and read its length. Tidy text with trim, toUpperCase and toLowerCase, and keep the new string each one gives back, because the old one never changes. Chain methods, ask questions with includes, startsWith and endsWith, count positions from 0 with indexOf and slice, read TS2551, and make TaskKit tidy its task names.

  • Fundamentals
  • TypeScript
Working with strings: common methods. Read this lesson at .