Predict the output of the following code.

Line 1: function getStatusData() { 
Line 2: var tempCounter = 10; 
Line 3: console.log(tempCounter);
Line 4: } 
Line 5: console.log(tempCounter >= 10 ? 'Active' : 'Inactive');

Error in Line 3

Inactive

Active

Error in Line 5

Verified Answer
Correct Option - d

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

Telegram