Ternary operator does not work inside Objects. its show false out despite condition being true. I tried it with function and it works just fine.
'use strict';
const person = {
age: 31,
statement: this.age >= 30 ? 'true output' : 'false output'
};
console.log(person.statement)