Log in Sign up
4 Matching Annotations
  1. Oct 2019
  2. www.typescriptlang.org www.typescriptlang.org
    Interfaces · TypeScript
    4
    1. TylerRick 28 Oct 2019
      in Public
      These are called default-initialized parameters.
      TypeScript TypeScript: default-initialized parameters
    2. TylerRick 28 Oct 2019
      in Public
      In TypeScript, we can also set a value that a parameter will be assigned if the user does not provide one, or if the user passes undefined in its place.
      TypeScript: default-initialized parameters javascript: undefined can't do in Ruby
    3. TylerRick 28 Oct 2019
      in Public
      buildName(undefined, "Adams")
      can't do in Ruby TypeScript: default-initialized parameters javascript: undefined
    4. TylerRick 28 Oct 2019
      in Public
      If a default-initialized parameter comes before a required parameter, users need to explicitly pass undefined to get the default initialized value.
      TypeScript: default-initialized parameters javascript: undefined can't do in Ruby
    Visit annotations in context

    Tags

    • TypeScript: default-initialized parameters
    • TypeScript
    • can't do in Ruby
    • javascript: undefined

    Annotators

    • TylerRick

    URL

    typescriptlang.org/docs/handbook/2/everyday-types.html
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy