Why can\'t we directly use this instead of self in the following example?
this
self
function SeatReservation(name, initialMeal) { var self =
In your example code there is no reason at all to copy this to a variable.
It's usually used when the code uses a callback method. Inside the callback method this doesn't reference the object, so you use the variable for that.