Sling Academy
Home/JavaScript/JavaScript Strings

JavaScript Strings

Welcome to this series of tutorials about strings in JavaScript. Working with strings is a fundamental part of programming, and it can sometimes be tough to get right. These tutorials are designed to help you.

Throughout the series, you’ll be taken through the basics of working with strings in JavaScript, including manipulating them, searching, and replacing characters. Practical examples and code snippets will be provided, making it easy to understand and maintain.

Whether you’re new to programming or looking to refresh your skills, this series is perfect for you. The concepts will be explained in a way that makes sense, allowing you to learn at your own pace and feel confident with your newfound knowledge.

So, whether you love programming, hate it, or fall somewhere in between, these tutorials will help you learn how to work with strings like a pro. By the end of the series, you’ll have a greater understanding of strings in JavaScript and be able to use them with ease. Let’s get started!

1 JavaScript: Regular Expressions Cheat Sheet

2 JavaScript: Count the occurrences of each word in a string

3 JavaScript: Convert a String to Upper or Lower Case

4 2 Ways to Check if a String is Empty in JavaScript

5 JavaScript: Check if a string contains a substring (4 approaches)

6 JavaScript: Remove Leading & Trailing Whitespace from a String

7 3 Ways to Reverse a String in JavaScript

8 4 Ways to Extract a Substring from a String in JavaScript

9 How to Convert a String into an Array in JavaScript

10 3 Ways to Validate an Email Address in JavaScript

11 JavaScript: Check if a String Starts or Ends With a Substring

12 JavaScript: 3 Ways to Create Multiline Strings

13 How to Escape Special Characters in a String in JavaScript

14 JavaScript: How to Capitalize all Words in a String

15 JavaScript: How to Count Words in a String

16 JavaScript Regular Expressions: Extract & Validate URLs

17 JavaScript: How to Convert a String to a URL Slug

18 4 Ways to Generate Random Strings in JavaScript

19 JavaScript: 2 Ways to Remove HTML Tags from a String

20 JavaScript: Ways to Compare 2 Strings Ignoring Case

21 JavaScript: Convert a string to Unicode code points (2 ways)

22 JavaScript: Convert a byte array to a hex string and vice versa

23 JavaScript: Convert a String to Binary (2 Approaches)

24 JavaScript: Remove non-alphanumeric characters from a string

25 JavaScript: 2 Ways to Format a String with Leading Zeros

26 JavaScript: Check if a string contains non-alphanumeric characters

27 JavaScript: Convert String to Hex and Vice Versa

28 JavaScript: Remove Multiple Consecutive White Spaces

29 JavaScript: Get filename & file extension from a URL

30 How to Generate Random Colors in JavaScript (4 Approaches)