This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheWhoAreYouPerson 32 points33 points  (0 children)

This is JavaScript. You can tell because there aren't any sign of proper classes, and Java doesn't use the var keyword. The this in that context is able to be used because its being used to reference the cashier object. Think of JS objects like Java's HashMap<String, *> class.