Qtr No. 213, New Town Yehlanka Indore 454775
Predict the output of the following code.
Line 1: let details : [number, string] ;
Line 2: details = ["Tom", 1002] ;
Line 3: details.push("Sam") ;
Line 4: console.log(details);
Compilation error at Line 3
Code will execute and output - [“Tom”, 1002, “Sam”]
Compilation error at Line 2
Code will execute and output - [1002, “Tom”, “Sam”]
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