BigInt() 생성자

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.

BigInt() 생성자는 BigInt 객체를 생성합니다.

구분

js
BigInt(value);

매개변수

value

생성하는 객체에 할당할 숫자 값. 문자열 또는 정수를 사용할 수 있습니다.

참고: BigInt()new 연산자와 함께 사용하지 않습니다.

예제

js
BigInt(123);
// 123n

명세

Specification
ECMAScript® 2025 Language Specification
# sec-bigint-constructor

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
BigInt() constructor

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

같이 보기