We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

현재 번역은 완벽하지 않습니다. 한국어로 문서 번역에 동참해주세요.

Number.parseInt() 함수는 문자열 인수를 형변환하여 지정된 진법이나 기본 타입으로 리턴합니다. 

Number.parseInt(string[, radix])


The value to parse. If the string argument is not a string, then it is converted to a string (using the ToString abstract operation). Leading whitespace in the string argument is ignored.
An integer between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the above mentioned string. 


이 함수는 전역 함수인parseInt() 함수와 완벽하게 같은 함수입니다 :

Number.parseInt === parseInt; // true

또한 ECMAScript 6의 일부분으로 전역 모듈화를 목적으로 동작합니다.  더 자세한 예제를 보기 위해서는 parseInt()를 보시기 바랍니다.


Number.parseInt = parseInt;


Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Number.parseInt' in that specification.
Standard Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 25 (25) No support (Yes) No support
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support 25 (25) No support No support No support

See also

문서 태그 및 공헌자

이 페이지의 공헌자: SphinxKnight, chro0611
최종 변경: SphinxKnight,