parseInt

    자바 스크립트 parseInt 사용 예

    //parseInt 사용 예 parseInt(“08”); // 0 반환 parseInt(“8”); // 8 반환 parseInt(“08”, 10); // 8 반환 참고 If the string begins with "0x", the radix is 16 (hexadecimal) If the string begins with "0", the radix is 8 (octal). This feature is deprecated If the string begins with any other value, the radix is 10 (decimal)