function fullName (firstName,lastName){
    if (firstName!=null && lastName!=null){
    return firstName+" "+lastName ;}
    else if(firstName==null){
        return lastName ;}
    else {return firstName ;
    }}
//  2- If one of the names is null dont add it to the full name

2- If one of the names is null dont add it to the full name
2 - If one of the names is null dont add it to the full name
function fullName (firstName,lastName){
    if (firstName!=null && lastName!=null){
    return firstName+" "+lastName ;}
    else if(firstName==null){
        return lastName ;}
    else {return firstName ;
    }}
function fullName ( firstName , lastName ) { if ( firstName != null && lastName != null ) { return firstName + " " + lastName ; } else if ( firstName == null ) { return lastName ; } else { return firstName ; } }
2- If one of the names is null dont add it to the full name
2 - If one of the names is null dont add it to the full name