Document Api Javascript Interview