-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtoLowerCase.js
35 lines (30 loc) · 1.16 KB
/
toLowerCase.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"use strict";
// TOPIC /////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Array Method: .toLowerCase()
//
// SYNTAX ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// string.toLowerCase();
//
// SUMMARY ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// • .toLowerCase() returns a string that is all lower case.
// •
//
// EXAMPLES //////////////////////////////////////////////////////////////////////////////////////////////////
//
// EXAMPLE 1: Return a string that is all lower case.
//
// RESOURCES /////////////////////////////////////////////////////////////////////////////////////////////////
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// EXAMPLE 1: Return a string that is all lower case.
const myString = "IM YELLING REALLY LOUD";
function makeLowerCase(string) {
const makeLow = string.toLowerCase();
console.log(makeLow);
}
makeLowerCase(myString); // im yelling really loud