Qtr No. 213, New Town Yehlanka Indore 454775
Given below is the content of the tsconfig.json file that a developer has written for their TypeScript application.
{
"compilerOptions": {
"target": "es5",
"watch":true
},
"files": [
"demo1.ts",
"demo2.ts"
]
}
What will be the output when the developer runs the command ‘tsc’ on the terminal?
It will generate demo1.js and demo2.js.
It will throw error because ‘watch’ option can be specified only in command line.
It will not throw any error nor generate js files, as file names are not mentioned in command line.
It will generate demo1.js and demo2.js in the folder named ‘es5’
To get all Infosys Certified TypeScript Professional Exam questions Join Telegram 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
Updated on Tue, 1 Jul 2025