McAfee interview question

Can you implement observer pattern in OO javascript using an interface?