BigInt() 생성자
BigInt()
생성자는 BigInt
객체를 생성합니다.
구분
js
BigInt(value);
매개변수
value
-
생성하는 객체에 할당할 숫자 값. 문자열 또는 정수를 사용할 수 있습니다.
참고: BigInt()
는 new
연산자와 함께 사용하지 않습니다.
예제
js
BigInt(123);
// 123n
명세
Specification |
---|
ECMAScript Language Specification # sec-bigint-constructor |
브라우저 호환성
BCD tables only load in the browser
같이 보기
BigInt
클래스