Last active
July 2, 2019 07:30
-
-
Save Kkan9ma/a804386baaac4d8168f3875776f1f3e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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