to lowercase code example

Example 1: javascript lowercase string

var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"

Example 2: uruby to lower case

name = 'Foo'
puts name           # Ruby
puts name.downcase  # ruby
puts name.upcase    # RUBY
puts name           # Ruby

Example 3: tr lowercase uppercase

tr '[:lower:]' '[:upper:]'

Example 4: tolowercase

const sentence = 'The quick brown fox jumps over the lazy dog.';

console.log(sentence.toLowerCase());
// expected output: "the quick brown fox jumps over the lazy dog."

Example 5: convert to uppercase

echo example | awk -F 'd' '{ print toupper($1)}'
EXAMPLE		#Example first uppercased outputed

Tags:

Java Example