// *** before: ***var count = input.count || 10; // 0 and "" turn into 10 as well - rarely//what you want// *** in version ES2020: ***const count = input.count ?? 10; // only null and undefined are replaced