Skip to content

Commit c01cb6f

Browse files
feat: add string methods & properties
1 parent 2c72ba2 commit c01cb6f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

part1 (Basics)/06_strings_methods&properties.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// strings_methods&properties.js
2-
3-
// INFO: String Methods & Properties in JavaScript
4-
51
/*
2+
INFO: String Methods & Properties in JavaScript
3+
64
Strings in JavaScript are sequences of characters and are indexed starting from 0.
75
This means you can access individual characters using bracket notation.
86
@@ -14,8 +12,10 @@ Example:
1412
let message = "Hello World";
1513
console.log(message[4]); // Output: o
1614

17-
// Properties
18-
// NOTE: The main property of strings is 'length' which returns the number of characters in the string.
15+
/*
16+
NOTE: Properties
17+
The main property of strings is 'length' which returns the number of characters in the string.
18+
*/
1919
console.log(message.length); // Output: 11
2020

2121
// INFO: Methods without arguments

0 commit comments

Comments
 (0)