File tree 1 file changed +14
-2
lines changed
Methods Extended Studies/String Methods Extended Study
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 9
9
//
10
10
// SUMMARY ///////////////////////////////////////////////////////////////////////////////////////////////////
11
11
//
12
- // • .toUpperCase()
12
+ // • .toUpperCase() returns a string with all characters capitalized.
13
13
// •
14
14
//
15
15
// EXAMPLES //////////////////////////////////////////////////////////////////////////////////////////////////
16
16
//
17
- // EXAMPLE 1:
17
+ // EXAMPLE 1: Make a string all uppercase.
18
18
//
19
19
// RESOURCES /////////////////////////////////////////////////////////////////////////////////////////////////
20
20
//
21
21
//
22
22
//
23
23
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
24
+
25
+
26
+ // EXAMPLE 1: Make a string all uppercase.
27
+
28
+ const myString = "this is how i whisper" ;
29
+
30
+ function capitalizeIt ( string ) {
31
+ const capIt = string . toUpperCase ( ) ;
32
+ console . log ( capIt ) ;
33
+ }
34
+
35
+ capitalizeIt ( myString ) ; // THIS IS HOW I WHISPER
You can’t perform that action at this time.
0 commit comments