String kecil JavaScript
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
Grepper
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
var str = "Hello World!";
var res = str.toLowerCase();
string.toLowerCase();
const lowerCase = (string) => {
const newText = string.toLowerCase();
return newText
};
var str = "ExaMple";
var res = str.toLowerCase();
output res -> "example"
var string = "A string";
var upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING
var lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string