(this page is green because my function passed all it's tests, inspect the page to see the test cases.)

Functional Elevator

Elevate! enter the current floor (number) and new floor (number)

(psst. There are only 4 floors -> 0, 1, 2, 3)

delta floor:


Object Oriented Elevator

Page loads at floor 0, enter the floor you want to go to.

(psst. There are only 4 floors -> 0, 1, 2, 3)

current floor:

old floor: