toLowerCase() 可把字串轉為小寫,toUpperCase() 可轉為大寫。
"Hello".toLowerCase(); // hello "Hello".toUpperCase(); // HELLO
這在比對輸入內容或格式化顯示時很實用。