switch , 삼항연산자
Switch
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
</head>
<body>
<div id="quiz">
<h4>물에 빠지면 누구먼저 구할 것임?</h4>
<button>친구</button>
<button>부모님</button>
<button>반려동물</button>
</div>
<script>
</script>
</body>
</html>삼항연산자

Last updated