What should be added in Line 2 to get the output as 200?

Line 1: let uniqueId: number[] | string = 'P1200';
Line 2: _______;
Line 3: console.log(uniqueId.pop());

let uniqueId = [1, 20, 90, 200]

uniqueId = [120, 20, 90, 200]

var uniqueId = [200, 20, 90, 120]

uniqueId = uniqueId.split('1')

Verified Answer
Correct Option - b

To get all Infosys Certified TypeScript Professional Exam questions Join Telegram Group https://bit.ly/infy_premium_group

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 Tue, 1 Jul 2025