๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/12954
function solution(x, n) {
var answer = [];
for(let i=1; i<=n; i++) {
answer.push(x*i);
}
return answer;
}
๋ฐ์ํ
'๐ ๋ญ? JS๋ก PS๋ฅผ ํ๋ค๊ณ ?' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค][Javascript / JS] ๋ฌธ์์ด ๋ด p์ y์ ๊ฐ์ (0) | 2023.04.04 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค] ๋๋จธ์ง๊ฐ 1์ด ๋๋ ์ ์ฐพ๊ธฐ (0) | 2023.04.03 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ์๋ฆฟ์ ๋ํ๊ธฐ (0) | 2023.03.30 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ์ฝ์์ ํฉ (0) | 2023.03.29 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ํ๊ท ๊ตฌํ๊ธฐ (0) | 2023.03.28 |