-
|
|
Beta Was this translation helpful? Give feedback.
Answered by
Lv1GoM
Feb 14, 2024
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Lv1GoM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parseInt함수와Number생성자 함수의 차이점parseIntparseInt함수는 문자열의 처음부터 시작하여 정수로 변환.NaN반환.NumberNumber함수는 전달된 값 전체를 숫자로 변환.NaN으로 평가됨0을 반환한다.Number함수를 사용하는 것이 더 간편하며, 특정 진법의 문자열을 변환할 때는parseInt를 사용할 수 있다.