Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
orange
javascript
Wiki
Home
Home
· Changes
Page history
orange created page: coding
authored
Jun 08, 2016
by
orange
Show whitespace changes
Inline
Side-by-side
home.md
View page @
181e1315
...
...
@@ -7,9 +7,11 @@
-
숫자
`n`
을 인수로 받아 1 ~ n 까지의 합계를 반환하는 함수를 작성하세요.
-
(※ 반복문 -> 가우스 -> 홀짝수 -> 재귀 순으로 확장 가능)
```
js
console
.
log
(
"
sum :
"
+
sum
(
10
));
```
## **문제 2)**
-
짝수일 경우
`Even`
, 홀수일 경우
`Odd`
를 리턴하는 함수를 작성하세요.
...
...