chore: divide working with common string methods lecture in smaller blocks (#61741)

This commit is contained in:
Ilenia
2025-08-14 13:30:05 +02:00
committed by GitHub
parent 29492cbfea
commit 5d2adfa058
18 changed files with 140 additions and 46 deletions

View File

@@ -3025,10 +3025,28 @@
"You will learn how to work with template literals, and the <code>indexOf</code> method."
]
},
"lecture-working-with-common-string-methods": {
"title": "Working with Common String Methods",
"lecture-working-with-string-character-methods": {
"title": "Working with String Character Methods",
"intro": [
"In these lectures, you will learn about the common string methods available in JavaScript. The string methods will let you do things like extracting a part of a string, changing the casing for a string, replacing a part of a string, trimming whitespace from a string, and much more."
"In this lecture you will learn about ASCII character encoding and how to use JavaScript's <code>charCodeAt()</code> and <code>fromCharCode()</code> methods to convert between characters and their numerical ASCII values."
]
},
"lecture-working-with-string-search-and-slice-methods": {
"title": "Working with String Search and Slice Methods",
"intro": [
"In this lecture you will learn how to search for substrings using the <code>includes()</code> method and how to extract portions of strings using the <code>slice()</code> method."
]
},
"lecture-working-with-string-formatting-methods": {
"title": "Working with String Formatting Methods",
"intro": [
"In this lecture you will learn how to format strings by changing their case using <code>toUpperCase()</code> and <code>toLowerCase()</code> methods, and how to remove whitespace using <code>trim()</code>, <code>trimStart()</code>, and <code>trimEnd()</code> methods."
]
},
"lecture-working-with-string-modification-methods": {
"title": "Working with String Modification Methods",
"intro": [
"In this lecture you will learn how to modify strings by replacing parts of them using the <code>replace()</code> method and how to repeat strings multiple times using the <code>repeat()</code> method."
]
},
"review-javascript-strings": {
@@ -4852,9 +4870,7 @@
"daily-coding-challenge": {
"title": "Daily Coding Challenge",
"blocks": {
"daily-coding-challenge": {
"title": "Daily Coding Challenge"
}
"daily-coding-challenge": { "title": "Daily Coding Challenge" }
}
},
"misc-text": {

View File

@@ -0,0 +1,9 @@
---
title: Introduction to Working with String Character Methods
block: lecture-working-with-string-character-methods
superBlock: full-stack-developer
---
## Introduction to Working with String Character Methods
In this lecture you will learn about ASCII character encoding and how to use JavaScript's `charCodeAt()` and `fromCharCode()` methods to convert between characters and their numerical ASCII values.

View File

@@ -0,0 +1,9 @@
---
title: Introduction to Working with String Formatting Methods
block: lecture-working-with-string-formatting-methods
superBlock: full-stack-developer
---
## Introduction to Working with String Formatting Methods
In this lecture you will learn how to format strings by changing their case using `toUpperCase()` and `toLowerCase()` methods, and how to remove whitespace using `trim()`, `trimStart()`, and `trimEnd()` methods.

View File

@@ -0,0 +1,9 @@
---
title: Introduction to Working with String Modification Methods
block: lecture-working-with-string-modification-methods
superBlock: full-stack-developer
---
## Introduction to Working with String Modification Methods
In this lecture you will learn how to modify strings by replacing parts of them using the `replace()` method and how to repeat strings multiple times using the `repeat()` method.

View File

@@ -0,0 +1,9 @@
---
title: Introduction to Working with String Search and Slice Methods
block: lecture-working-with-string-search-and-slice-methods
superBlock: full-stack-developer
---
## Introduction to Working with String Search and Slice Methods
In this lecture you will learn how to search for substrings using the `includes()` method and how to extract portions of strings using the `slice()` method.

View File

@@ -1,39 +0,0 @@
{
"name": "Working with Common String Methods",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": false,
"dashedName": "lecture-working-with-common-string-methods",
"superBlock": "full-stack-developer",
"challengeOrder": [
{
"id": "672d266034b5242126271995",
"title": "What Is ASCII, and How Does It Work with charCodeAt() and fromCharCode()?"
},
{
"id": "67326c0d7bef01c539120766",
"title": "How Can You Test if a String Contains a Substring?"
},
{
"id": "67326c15b3b2f0c5827927cc",
"title": "How Can You Extract a Substring from a String?"
},
{
"id": "67326c1fdaf9c0c5ad1a2589",
"title": "How Can You Change the Casing for a String?"
},
{
"id": "67326c29dcd98fc5ecc49779",
"title": "How Can You Replace Parts of a String with Another?"
},
{
"id": "67326c3392068ec6184a0c95",
"title": "How Can You Repeat a String x Number of Times?"
},
{
"id": "67326c3c3ab931c644cea05b",
"title": "How Can You Trim Whitespace from a String?"
}
],
"helpCategory": "JavaScript"
}

View File

@@ -0,0 +1,15 @@
{
"name": "Working with String Character Methods",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": false,
"dashedName": "lecture-working-with-string-character-methods",
"superBlock": "full-stack-developer",
"challengeOrder": [
{
"id": "672d266034b5242126271995",
"title": "What Is ASCII, and How Does It Work with charCodeAt() and fromCharCode()?"
}
],
"helpCategory": "JavaScript"
}

View File

@@ -0,0 +1,19 @@
{
"name": "Working with String Formatting Methods",
"isUpcomingChange": false,
"dashedName": "lecture-working-with-string-formatting-methods",
"superBlock": "full-stack-developer",
"blockType": "lecture",
"blockLayout": "challenge-list",
"helpCategory": "JavaScript",
"challengeOrder": [
{
"id": "67326c1fdaf9c0c5ad1a2589",
"title": "How Can You Change the Casing for a String?"
},
{
"id": "67326c3c3ab931c644cea05b",
"title": "How Can You Trim Whitespace from a String?"
}
]
}

View File

@@ -0,0 +1,19 @@
{
"name": "Working with String Modification Methods",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": false,
"dashedName": "lecture-working-with-string-modification-methods",
"superBlock": "full-stack-developer",
"helpCategory": "JavaScript",
"challengeOrder": [
{
"id": "67326c29dcd98fc5ecc49779",
"title": "How Can You Replace Parts of a String with Another?"
},
{
"id": "67326c3392068ec6184a0c95",
"title": "How Can You Repeat a String x Number of Times?"
}
]
}

View File

@@ -0,0 +1,19 @@
{
"name": "Working with String Search and Slice Methods",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": false,
"dashedName": "lecture-working-with-string-search-and-slice-methods",
"superBlock": "full-stack-developer",
"helpCategory": "JavaScript",
"challengeOrder": [
{
"id": "67326c0d7bef01c539120766",
"title": "How Can You Test if a String Contains a Substring?"
},
{
"id": "67326c15b3b2f0c5827927cc",
"title": "How Can You Extract a Substring from a String?"
}
]
}

View File

@@ -576,7 +576,16 @@
"dashedName": "workshop-teacher-chatbot"
},
{
"dashedName": "lecture-working-with-common-string-methods"
"dashedName": "lecture-working-with-string-character-methods"
},
{
"dashedName": "lecture-working-with-string-search-and-slice-methods"
},
{
"dashedName": "lecture-working-with-string-formatting-methods"
},
{
"dashedName": "lecture-working-with-string-modification-methods"
},
{
"dashedName": "review-javascript-strings"