Strings and Regular Expressions in JavaScript
Working with text is a fundamentally crucial task in every programming language. This course will help you deepen your knowledge of the String and Regex API of the JavaScript language.
What you'll learn
There are dozens of ways to manipulate a string to achieve a plethora of tasks. In this course, Strings and Regular Expressions in JavaScript, you'll learn how to write clean and efficient string-manipulating code.
First, you’ll discover the multiple ways that exist to define strings, including template literals and the power of string interpolatation. Next, you’ll explore the String API and how to perform a variety of useful tasks and build a small utility library along the way. Finally, you’ll learn how to apply Regular Expressions judiciously in your code.
When you’re finished with this course, you’ll have the skills and knowledge of working with strings and regex needed to process text.
Table of contents
- Introduction 2m
- Applying the Length Check 5m
- Understanding Immutability 2m
- The Art of Comparing Strings 6m
- Ignoring the Case 3m
- Comparing Strings with Diacritics 3m
- Comparing Numbers as Strings 2m
- So Many Ways to Concatenate 3m
- Applying indexOf() and contains() 4m
- Slice It or Substring It? 3m
- slice() vs. at() 1m
- Applying startsWith() and endsWith() 2m
- Converting to a String 4m
- Handling Large Numbers 1m
- Coding Challenge 3m
- Module Summary 0m