Skip to content

Commit e5c4764

Browse files
fix: string methods and properties
1 parent 9e5e838 commit e5c4764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

part1 (Basics)/06_strings_methods&properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ console.log(message[4]); // Output: o
1818
// NOTE: The main property of strings is 'length' which returns the number of characters in the string.
1919
console.log(message.length); // Output: 11
2020

21-
// Methods without arguments
21+
// INFO: Methods without arguments
2222

2323
// Convert to uppercase
2424
console.log(message.toUpperCase()); // Output: "HELLO WORLD"
@@ -32,7 +32,7 @@ console.log(newMessage.trim()); // Output: "hi this is me ."
3232
console.log(newMessage.trimStart()); // Removes only the starting spaces
3333
console.log(newMessage.trimEnd()); // Removes only the ending spaces
3434

35-
// Methods with arguments
35+
// INFO: Methods with arguments
3636

3737
// Check if string includes substring
3838
console.log(message.includes("Hello")); // Output: true

0 commit comments

Comments
 (0)