I'm trying to get the else-if nesting statement to work but nothing is coming through the browser
Code:
<html>
<head>
</head>
<body>
<script type="text/javascript">
var favColor = "Black";
var favNumber = 17;
var gender = "Male";
var birthPlace = "Perth";
if(favColor=="Black"){
if(favNumber==17;);{
if(gender=="Male");{
if(birthPlace=="Perth");{
document.write("Your infomation is correct");
}else{
document.write("Invalid user infomation");
}
}
}
}
</script>
</html>
What am i doing wrong ? Cheers
Aucun commentaire:
Enregistrer un commentaire