Javascript/toLowerCase()

解説 大文字小文字指定
sample1
sample1code
var sample1Btn = document.getElementById("sample1Btn");
sample1Btn.onclick = function sample1Func(){
  var x = "abcdefg";
  var y = "HIJKLMN";
  x = x.toUpperCase();
  y = y.toLowerCase();
  console.log(x);
  console.log(y);
}
sample2
sample2code
function s2Func(){
	var s2Input = document.getElementById("s2Input");
	s2Input = s2Input.value.toLowerCase();
	var s2Div = document.getElementById("s2Div");
	s2Div.innerHTML = s2Input;
}