function formatMessage(username, text)
{
    return{
        username,
        text,
        time: moment().format('h:mm a')
    }
}
//taking the username and text from input and return username, text and time
taking the username and text from input and return username, text and time
taking the username and text from input and return username text and time
function formatMessage(username, text)
{
    return{
        username,
        text,
        time: moment().format('h:mm a')
    }
}
function formatMessage ( username , text ) { return { username , text , time : moment ( ) . format ( 'h:mm a' ) } }
taking the username and text from input and return username, text and time
taking the username and text from input and return username text and time