This page was translated from English by the community.Learn more and join the MDN Web Docs community.
BigInt() 생성자
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020년 9월.
BigInt() 생성자는BigInt 객체를 생성합니다.
In this article
구분
js
BigInt(value);매개변수
value생성하는 객체에 할당할 숫자 값. 문자열 또는 정수를 사용할 수 있습니다.
참고 :BigInt()는new 연산자와 함께 사용하지 않습니다.
예제
js
BigInt(123);// 123n명세
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-bigint-constructor> |
브라우저 호환성
같이 보기
BigInt클래스