var Person = {
firstName: 'Joe',
midName: 'Alan',
lastName: 'Dokes',
age: '35',
getFirstName: function() {
return this.firstName;
}
}
<script>
document.getElementById('info').innerHTML =
Person.getFirstName();
</script>