No need to assign `undefined`, just `var ret;` is enough as `undefined` is the default value,