ABSTRACT

Methods are added in a way similar to properties, except that

the keyword is function. To be very concise a method is an oldstyle function (like in Actionscript 2) with a specifier. Let’s add a greeting method to our Person class.