๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/12937
function solution(num) {
if(num % 2 === 0)
return 'Even'
else
return 'Odd'
}
๋ฐ์ํ
'๐ ๋ญ? JS๋ก PS๋ฅผ ํ๋ค๊ณ ?' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค][Javascript / JS] x๋งํผ ๊ฐ๊ฒฉ์ด ์๋ n๊ฐ์ ์ซ์ (0) | 2023.03.31 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ์๋ฆฟ์ ๋ํ๊ธฐ (0) | 2023.03.30 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ์ฝ์์ ํฉ (0) | 2023.03.29 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ํ๊ท ๊ตฌํ๊ธฐ (0) | 2023.03.28 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ๋ ์์ ๊ณฑ (0) | 2023.03.27 |