TypeScript - Interview Questions and Answers for 'TypeScript' - 40 question(s) found - Order By Newest Ans. Let creates a variable with a local scope whereas var creates it with a global scope. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2. What are the different data types in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q3. Difference between interface and type ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q4. Difference between interface and class in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q5. Why type has been deprecated and replaced by interfaces ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q6. Can we set specific return type of a method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q7. What is the use of map method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q8. What is type script ? What are the advantages of typescript ? How is it different than javascript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Typescript vs Javascript Q9. What are the features of TypeScript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q11. Can we compile multiple type script files together ? How ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q12. How is the declaration of enum in Typescript differ from Javascript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  enum typescript  enum javascript Q13. What is the type of variable if we don't set any type ? TypeScript
Ans. Any Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  any type in typescript Q14. Can we do type casting in Typescript ? TypeScript
Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  type casting in typescript Q15. What is arrow function in Typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  arraow functions in typescript   lambda expression vs arrow function Q16. Explain interfaces in Typescript. How is it different compared to other languages ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interfaces in typescript Q17. What is the difference between method and function in Typescript ? TypeScript
Ans. Method belongs to a class whereas function isn't. So the only difference is the scope in which they are defined. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  method vs function in typescript Q18. What is the difference between field and property in Typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  field vs property in typescript Q19. How do we initialize objects in TypeScript ? TypeScript
Ans. Using new operator Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q20. How do we specify constructors in TypeScript ? How is it different from other languages ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q21. What is the role of "?" in TypeScript constructors ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Typescript constructor Q22. How can we make the constructor variables optional in Typescript ? TypeScript
Ans. Using "?" with the variables Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q23. What new features of TypeScript do you like ? TypeScript
Ans. TypeScript is used to Apply types to your JavaScript code, And it shows the error in IDE while writing code and make us to fix it to avoid any bug or issue before build and deployment, for example: you put //@ts-code at top of your js file, and it will show errors in file when u make common code mistakes. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q24. What are the advantages of using TypeScript over Javascript ? TypeScript
This question was recently asked at 'Quicken Loans'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies This question was recently asked at 'Fuze'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q26. write an angular Typescript program to add item into an array TypeScript
This question was recently asked at 'Moneris'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q27. What are some downsides to static typing in TypeScript? TypeScript
This question was recently asked at 'Workday'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies This question was recently asked at 'Intelliware Development'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q29. How can you trim all strings in an array ?
Ans. array.map(s => s.trim()) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   angular   typescript   javascript Q30. Can we specify that a particular variable may have either of the two data types in Typescript ? Typescript
Ans. let result: string | boolean; Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve