Js Constructive Pattern

by revathskumar

CoffeeScript

class Person
    initialize: (name, school) ->
        console.log name
        @name = name
        @school = school
        
    toString: ->
        console.log @name + " studied in " + @school
        
        
        
me = new Person("Revath", "St. Joseph's boys high school")
me.toString();