What is the output of the following TypeScript code?

type Point = [number, number?, number]; 
let point : Point = [10, 20]; 
console.log(point);

[10,30]

[10,20,30]

Compilation error: Type '[number, number]' is not assignable to type 'Point'. Source provides no match for the required element at position 2 in the target.

Compilation error: Required parameter cannot follow optional parameter

Correct Option - d

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

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