I'm learning CoffeeScript I have this code:
class Person
    constructor: (@firstName, @lastName) ->
    sayHi: () ->
        return "Hi, I'm #{@firstName} #{@lastName}"
And is generating this javascript code:
// Generated by CoffeeScript 1.10.0
(function() {
  var Person;
  Person = (function() {
    function Person(firstName, lastName) {
      this.firstName = firstName;
      this.lastName = lastName;
    }
    Person.prototype.sayHi = function() {
      return "Hi, I'm " + this.firstName + " " + this.lastName;
    };
    return Person;
  })();
}).call(this);
I want to create instances of that class, but since it's inside the closure I can't how should I do that?
 
     
     
    