کد
خروجی
توضیحات
<script> var a = true; if (a) { document.write("صحیح"); } else { document.write("غلط"); } </script>