File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.
1919console . log ( message . length ) ; // Output: 11
2020
21- // Methods without arguments
21+ // INFO: Methods without arguments
2222
2323// Convert to uppercase
2424console . log ( message . toUpperCase ( ) ) ; // Output: "HELLO WORLD"
@@ -32,7 +32,7 @@ console.log(newMessage.trim()); // Output: "hi this is me ."
3232console . log ( newMessage . trimStart ( ) ) ; // Removes only the starting spaces
3333console . 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
3838console . log ( message . includes ( "Hello" ) ) ; // Output: true
You can’t perform that action at this time.
0 commit comments