Question 2
Consider the below JavaScript code.
function isValidAge(age) { return !(age > 18)}
const validAgeParams = { voter_id: 123, constituency: 'New Delhi'}
const teenageParams = { age_criteria: '<18',}
let some_value;
console.log( isValidAge(some_value) ? { 'name': 'ABC', ...(!isValidAge(19) && validAgeParams) } : { 'name': 'XYZ', ...(isValidAge(19) && teenageParams) });What will be the output of the above program, assuming the value of the variable “some_value” is less than 18?