Code Explainers
function splitFullName(fullName) { const cleaned = (fullName || '').trim().replace(/\s+/g, ' '); if (!cleaned) {