Skip to content

Instantly share code, notes, and snippets.

@Kkan9ma
Last active July 2, 2019 07:30
Show Gist options
  • Save Kkan9ma/a804386baaac4d8168f3875776f1f3e3 to your computer and use it in GitHub Desktop.
Save Kkan9ma/a804386baaac4d8168f3875776f1f3e3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
</head>
<body>
<h2>대문자 소문자 문장 판별기</h2>
<script>
var str = prompt("영어 문장을 입력하세요");
var big = str.toUpperCase();
var small = str.toLowerCase();
if (str === big) {
console.log("대문자 문장입니다.");
} else if(str === small){
console.log("소문자 문장입니다.");
} else {
console.log("보통 문장입니다.");
}
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment