Basic Interview Questions Javascript