Consider the following JavaScript code snippet. What will be the output of the console.log statements? 

let user = { 
	name: "Alice", 
	age: 30, 
	isPremiumMember: true, 
	getDetails: function() { 
		return `${this.name} is ${this.age} years old and ${this.isPremiumMember ? "is" : "is not"} a premium member.`; 
	} 
}; 
console.log(typeof user.age); 
console.log(user.getDetails()); 
console.log(typeof user.getDetails);

object 
Alice is 30 years old and is a premium member. 
string

string 
Alice is 30 years old and is a premium member. 
object

number 
Alice is 30 years old and is a premium member. 
function

number 
Alice is 30 years old and is not a premium member.
function

Verified Answer
Correct Option - c

To get all Infosys Certified JavaScript Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram