What will be the output of the following code? 

let a=10; 
if(a = 6) { 
	console.log("Executed"); 
} 
else {
	console.log("Not Executed"); 
}

Executed

Not Executed

Syntax Error

TypeError

Verified Answer
Correct Option - a

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

Telegram