Created
June 26, 2019 05:16
-
-
Save Kkan9ma/5899792dc9fbde7d10c47980af88c5e3 to your computer and use it in GitHub Desktop.
This file contains 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>연습문제 1-4: 입력한 문자열의 길이를 알려주는 프로그램</h2> | |
<script> | |
var input = prompt("문자를 입력하세요"); | |
var length = input.length; | |
document.write("입력하신 문자의 길이는 " + length +"자입니다"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment