A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase below:

String.prototype.toLowerCase() - JavaScript | MDN

String.prototype.toLowerCase()

Baseline Widely available

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."
構文 返値

呼び出す文字列の値を小文字に変換した新しい文字列です。

解説

toLowerCase() メソッドは、小文字に変換された文字列の値を返します。toLowerCase() メソッドは、文字列 str 自身の値には影響を与えません。

例 toLowerCase() メソッドの使用
console.log("ALPHABET".toLowerCase()); // 'alphabet'
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4