javascript output interview questions