Skip to content

Commit 12d4eae

Browse files
committed
Solve : 029 문제 해결
1 parent 72f6c17 commit 12d4eae

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 문제29 : 대문자만 지나가세요
2+
3+
진구는 영어 학원 아르바이트를 하고 있습니다. 반 아이들은 알파벳을 공부하는 학생들인데 오늘은 대문자 쓰기 시험을 봤습니다.
4+
5+
알파벳 하나만을 입력하고 그 알파벳이 대문자이면 YES를 아니면 NO를 출력하는 프로그램을 만들어 주세요.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// 문제29 : 대문자만 지나가세요
2+
3+
// 진구는 영어 학원 아르바이트를 하고 있습니다. 반 아이들은 알파벳을 공부하는 학생들인데 오늘은 대문자 쓰기 시험을 봤습니다.
4+
5+
// 알파벳 하나만을 입력하고 그 알파벳이 대문자이면 YES를 아니면 NO를 출력하는 프로그램을 만들어 주세요.
6+
7+
function solution (string) {
8+
if (string === string.toUpperCase()) {
9+
console.log('yes')
10+
} else {
11+
console.log('no')
12+
}
13+
}
14+
15+
var word = 's'
16+
solution(word)

0 commit comments

Comments
 (0)