Skip to content

Instantly share code, notes, and snippets.

@Kkan9ma
Created June 26, 2019 05:16
Show Gist options
  • Save Kkan9ma/5899792dc9fbde7d10c47980af88c5e3 to your computer and use it in GitHub Desktop.
Save Kkan9ma/5899792dc9fbde7d10c47980af88c5e3 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>연습문제 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