형식) (조건식) ? 참인 경우 실행문 : 거짓인 경우 실행문
=============================코드=============================
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
// 삼항 연산자
let num = 27;
let result = (num > 20) ? "참" : false;
document.write(`result >>> ${result} <br/>`);
</script>
</head>
<body>
</body>
</html>
