=============================코드=============================
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
let su = 1;
while(su <= 10) {
document.write(`su >>> ${su++} <br/>`);
}
</script>
</head>
<body>
</body>
</html>

=============================코드=============================
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
// for 반복문
let sum = 0;
for(let su = 1; su <= 100; su++){
sum = sum + su;
}
document.write(`1~100까지의 합 >>> ${sum}`);
</script>
</head>
<body>
</body>
</html>
