Coffeehouse Post

Single Post Permalink

View Thread: TypeScript is JavaScript...
  • User profile image
    Ray7

    Okay, they missed a trick here.

    function greeter(person : Person) {

    return "Hello, " + person.firstname + " " + person.lastname;
    }

     

    What's wrong with this?

    function greeter(person : Person) {

    return "Hello, ${person.firstname} ${person.lastname)";
    }