We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c72ba2 commit c01cb6fCopy full SHA for c01cb6f
1 file changed
part1 (Basics)/06_strings_methods&properties.js
@@ -1,8 +1,6 @@
1
-// strings_methods&properties.js
2
-
3
-// INFO: String Methods & Properties in JavaScript
4
5
/*
+INFO: String Methods & Properties in JavaScript
+
6
Strings in JavaScript are sequences of characters and are indexed starting from 0.
7
This means you can access individual characters using bracket notation.
8
@@ -14,8 +12,10 @@ Example:
14
12
let message = "Hello World";
15
13
console.log(message[4]); // Output: o
16
17
-// Properties
18
-// NOTE: The main property of strings is 'length' which returns the number of characters in the string.
+/*
+NOTE: Properties
+The main property of strings is 'length' which returns the number of characters in the string.
+*/
19
console.log(message.length); // Output: 11
20
21
// INFO: Methods without arguments
0 commit comments