Skip to content

Commit d3ce4e3

Browse files
committed
updated toUpperCase
1 parent c41e70e commit d3ce4e3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Methods Extended Studies/String Methods Extended Study/toUpperCase.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,27 @@
99
//
1010
// SUMMARY ///////////////////////////////////////////////////////////////////////////////////////////////////
1111
//
12-
// • .toUpperCase()
12+
// • .toUpperCase() returns a string with all characters capitalized.
1313
// •
1414
//
1515
// EXAMPLES //////////////////////////////////////////////////////////////////////////////////////////////////
1616
//
17-
// EXAMPLE 1:
17+
// EXAMPLE 1: Make a string all uppercase.
1818
//
1919
// RESOURCES /////////////////////////////////////////////////////////////////////////////////////////////////
2020
//
2121
//
2222
//
2323
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
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

0 commit comments

Comments
 (0)