basic interview test for javascript