TypeScript freeCodeCamp

Cards (581)

  • What programming language is TypeScript based on?
    JavaScript
  • What is the current trend regarding JavaScript?
    It is widely used and debated
  • What do many people claim after starting TypeScript?
    They don't want to return to JavaScript
  • What is TypeScript often referred to as?
    A superset of JavaScript
  • What does TypeScript allow you to do with JavaScript code?
    Write it in a more precise manner
  • What is a key benefit of using TypeScript?
    It catches errors while writing code
  • What happens to TypeScript code when compiled?
    It is converted into JavaScript
  • What is the main focus of TypeScript?
    Type safety
  • What does TypeScript prevent in JavaScript?
    Odd behavior due to type mismatches
  • What is static checking in TypeScript?
    Analyzing code for potential errors
  • How does TypeScript help during coding?
    By providing hints for potential errors
  • What is the relationship between TypeScript and JavaScript?
    TypeScript is a development tool for JavaScript
  • What file extension is used for TypeScript files?
    .ts
  • What is the purpose of the .tsx file extension?
    It combines TypeScript with JSX syntax
  • What does transpiling mean in the context of TypeScript?
    Converting TypeScript code into JavaScript
  • What is a common misconception about TypeScript?
    That it reduces the amount of code written
  • What does TypeScript help to produce in code?
    More scalable and maintainable code
  • What is the main job of TypeScript?
    To analyze code for potential errors
  • What is the TypeScript lang.org used for?
    To run TypeScript and see JavaScript output
  • What does TypeScript allow you to do with objects?
    Define properties and types for them
  • What happens if you try to access a property that doesn't exist in TypeScript?
    You receive a squiggly line error
  • What does the right-hand side produce in the example?
    JavaScript code
  • What is the purpose of the console.log in the example?
    To print a message to the console
  • What error does TypeScript provide when accessing a non-existent property?
    Property doesn't exist error
  • What is the result of adding two numbers in TypeScript?
    It produces the same result as JavaScript
  • How is TypeScript described in the video?
    As a development tool dependent on JavaScript
  • What are the two different installations of TypeScript mentioned?
    Global system installation and project installation
  • What is required for using TypeScript in a project?
    An additional TypeScript config file
  • What command is used to install TypeScript globally?
    NPM install TypeScript -g
  • What should you check to ensure Node is installed?
    Run node -v command
  • What does Node provide that is useful for TypeScript?
    A utility called NPM
  • What is the purpose of the TSC command?
    To execute TypeScript files
  • What does the TSC command followed by -v do?
    Displays the version of TypeScript
  • What file extension should TypeScript files have?
    .ts
  • What happens when you compile a TypeScript file?
    A JavaScript file is generated
  • What does TypeScript help prevent when coding?
    Common coding errors in JavaScript
  • What is the purpose of the playground on the TypeScript website?
    To experiment with TypeScript code
  • What is the TS config file used for?
    To configure TypeScript settings in projects
  • Why is TypeScript considered a wrapper around JavaScript?
    It enhances JavaScript with type safety features
  • Why is GitBash recommended for Windows users?
    It provides Linux-friendly commands