필드 · Country Code

필드 · Country Code · location.countryCode. 생성 메서드 · 예시

location.countryCode

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

Returns a random ISO_3166-1 country code.

location.countryCode(options?: 'alpha-2' | 'alpha-3' | 'numeric' | { variant?: 'alpha-2' | 'alpha-3' | 'numeric'; })
options
The code to return or an options object.
options.variant
The variant to return. Can be one of: - 'alpha-2' (two-letter code) - 'alpha-3' (three-letter code) - 'numeric' (numeric code) Defaults to 'alpha-2'.

예시

"NO"

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색