x
<html>
<body>
<script>
var AccountDetails = function(){
var person = "Christina";
function secretNumber(person){
var num = 0;
if(person == "Christina"){
num = 90678;
}
return num;
}
return{
display : function(){
var designee = "Mrs." + person;
document.write("Name of person " + designee + "; ");
return secretNumber(person);
}
};
}();
document.write(AccountDetails.display());
</script>
</body>
</html>
Comments
No comments have been made yet.
Please login to leave a comment. Login now