fix(curriculum): reword the opening statement of method chaining (#64057)

This commit is contained in:
Diem-Trang Pham
2025-11-22 10:58:56 -08:00
committed by GitHub
parent 5a9b36790e
commit aa3656b74b
@@ -7,7 +7,7 @@ dashedName: what-is-method-chaining-and-how-does-it-work
# --interactive--
Method chaining is a programming technique that allows you to call multiple methods on the same object in a single line of code. This technique can make your code more readable and concise, especially when performing a series of operations on the same object.
Method chaining is a technique where you call several methods one after another. You can use method chaining on many types of values in JavaScript including strings, arrays, and objects. Even though strings are primitive values, JavaScript temporarily wraps them in a `String` object when you use a string method.
Let's look at an example using different string methods: