JavaScript Agregar a indefinido

test = undefined;
test = (+test || 0) + 1;
DevinRC