TD Interview Question

Walk through a small javascript function