This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Number() 생성자
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Number() 생성자는Number 객체를 생성합니다.
In this article
구문
js
new Number(value);매개변수
value만들어질 객체의 숫자 값.
예제
>Number 객체 만들기
js
const a = new Number("123"); // a === 123 은 거짓const b = Number("123"); // b === 123 은 참a instanceof Number; // 참b instanceof Number; // 참명세
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-number-constructor> |