parseInt()
๋ฌธ์์ด์ ์ ์ํ์ผ๋ก ๋ฐ๊ฟ๋๋ค. (๋ฐ๋ผ์ ์์์ ์ ๋ฒ๋ฆฌ๊ฒ ๋ฉ๋๋ค.)
parseInt(string , n) // string์ n์ง์๋ก ์ฝ์ด์, 10์ง์๋ก ๋ฐํํฉ๋๋ค.
parseInt(string) // n์์ด string๋ง ์ฐ๋ฉด, 10์ง์๋ก ์ฝ์ด 10์ง์๋ก ๋ฐํํฉ๋๋ค.
parseFloat()
๋ฌธ์์ด์ ์ค์ํ์ผ๋ก ๋ฆฌํดํฉ๋๋ค.
parseFloat(string)
isNaN() - is Not a Number
isNaN(value)
value๊ฐ ์ซ์๋ผ๋ฉด true๋ฅผ ๋ฆฌํดํฉ๋๋ค. ์ซ์๊ฐ ์๋๋ฉด false๋ฅผ ๋ฆฌํดํฉ๋๋ค.
eval ()
eval(exp)
exp์ ๋ค์ด๊ฐ ์์ ๊ณ์ฐํ์ฌ ๊ฒฐ๊ณผ๋ฅผ ๋ฐํํฉ๋๋ค. exp์๋ ๋ฌธ์์ดํํ๋ก ๋ฃ์ด์ผํฉ๋๋ค.