TypeScript Junior
Explain what type inference is in TypeScript.
Select the correct answer
Type inference is the process of converting JavaScript to TypeScript.
Type inference is the act of debugging type errors in TypeScript.
Type inference is the ability of the TypeScript compiler to automatically deduce types.
Type inference is a feature to suggest variable names in TypeScript.
Can TypeScript be used for the backend?
Select the correct answer
Yes, but it requires a special compiler.
No, TypeScript is only for frontend development.
Yes, TypeScript can be used for backend development using Node.js.
No, TypeScript does not support backend features.
What is TSX?
Select the correct answer
TSX is a database query language for TypeScript.
TSX is a type of stylesheet used in TypeScript.
TSX is a testing framework for TypeScript applications.
TSX stands for TypeScript XML and is used for embedding XML in TypeScript.
What is the use of the tsconfig.json file?
Select the correct answer
It is used to configure TypeScript compiler options.
It is used to define environment variables for Node.js.
It is used to manage project dependencies.
It is used to set up a testing framework.
Name the access modifiers supported in TypeScript.
Select the correct answer
public, protected, default, and final.
protected, private, static, and final.
public, private, default, and static.
public, private, protected, and readonly.
Define static typing.
Select the correct answer
A typing system used exclusively for dynamic languages.
A system where variables are checked at runtime.
A type system where types are checked at compile time.
A method of overloading functions in JavaScript.
What is TypeScript?
Select the correct answer
A strongly typed superset of JavaScript that compiles to plain JavaScript.
A framework for building mobile applications.
A library for managing state in React applications.
A database management system.