exam js oop