JavaScript learner here: given this object:
var ivan = {
name: 'Ivan',
yearOfBirth: 1973,
age: 2017 - this.yearOfBirth
}
console.log(ivan.age);
Why the console.log says NaN
? Can't I do simple math operations in property declaration? if not, why?