<html>
<head>
<meta charset="utf-8"></meta>
<title>Untitled Document</title>
</head>
<body>
<script type="text/javascript">
a=5;
b=7;
//Cach 1: if...else:
if(a>b)
document.write("a > b");
else
if(a<b)
document.write("a < b");
else
document.write("a = b");
//Cach 2: if khong else:
if(a>b) document.write("a > b");
if(a<b) document.write("a < b");
if(a==b) document.write("a = b");
</script>
</body>
</html>
0 comments:
Post a Comment