A TypeScript developer must declare a block-level scoped variable named – myVar in the application. Can you select the appropriate option that would help to achieve this requirement?

  1. var myVar:number = 123;
  2. let myVar:number = 123;
  3. const myVar:number =123;
  4. myVar:number=123;

a, b

b, c

a, c

b, d

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