File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- // strings_methods&properties.js
2-
3- // INFO: String Methods & Properties in JavaScript
4-
51/*
2+ INFO: String Methods & Properties in JavaScript
3+
64Strings in JavaScript are sequences of characters and are indexed starting from 0.
75This means you can access individual characters using bracket notation.
86
@@ -14,8 +12,10 @@ Example:
1412let message = "Hello World" ;
1513console . 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+ */
1919console . log ( message . length ) ; // Output: 11
2020
2121// INFO: Methods without arguments
You can’t perform that action at this time.
0 commit comments