Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
valueOf() は String 値のメソッドで、この文字列値を返します。
なし。
与えられた String オブジェクトのプリミティブ値を表す文字列です。
String オブジェクトの valueOf() メソッドは、String オブジェクトの文字列型としてのプリミティブ値を返します。この値は、String.prototype.toString() の返値と等価です。
このメソッドは通常、JavaScript によって内部的に呼ばれ、コード中で明示的に呼ばれることはありません。
| ECMAScript® 2027 Language Specification # sec-string.prototype.valueof |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年8月22日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.