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

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Wed, 29 Oct 2025