Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
toString() 메서드는 객체의 문자열 표현을 반환합니다.
메서드를 호출하는 객체의 문자열 표현.
String 객체는 Object 객체의 toString() 메서드를 상속하지 않고 재정의합니다. String 의 toString() 메서드는 객체의 문자열 표현을 반환하며 String.prototype.valueOf() 메서드와 동일합니다.
String 객체의 문자열 값을 표시하는 예제입니다.
| ECMAScript® 2027 Language Specification # sec-string.prototype.tostring |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.