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 |
브라우저 호환성
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
같이 보기
BigInt
클래스