BigInt() 생성자

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

구분

BigInt(value);

매개변수

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

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

예제

BigInt(123);
// 123n

명세

Specification Status
ECMAScript (ECMA-262)
The definition of 'BigInt constructor' in that specification.
Living Standard

브라우저 호환성

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
BigInt() constructorChrome Full support 67Edge Full support 79Firefox Full support 68IE No support NoOpera Full support 54Safari No support NoWebView Android Full support 67Chrome Android Full support 67Firefox Android Full support 68Opera Android Full support 48Safari iOS No support NoSamsung Internet Android Full support 9.0nodejs Full support 10.4.0

Legend

Full support  
Full support
No support  
No support

같이 보기