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 객체를 생성합니다.
구분
js
BigInt(value);
매개변수
value-
생성하는 객체에 할당할 숫자 값. 문자열 또는 정수를 사용할 수 있습니다.
참고 :
BigInt()는 new 연산자와 함께 사용하지 않습니다.
예제
js
BigInt(123);
// 123n
명세
| Specification |
|---|
| ECMAScript® 2027 Language Specification> # sec-bigint-constructor> |
브라우저 호환성
Enable JavaScript to view this browser compatibility table.
같이 보기
BigInt클래스