Constant Contact Interview Question

Write JavaScript to do a depth-first traversal of a binary tree