function sendMessage() {
 // #8 #input #real take input from message bo
    var newMessage = new Message($('input[name = "messagetext"]').val());
    console.log(newMessage)
    createMessageElement(newMessage);
 // #8 #input #clear the input after message has been sent
    $('input[name = "messagetext"]').val('')
}
//#8 #message #send create a function to create a new message object 

8 #message #send create a function to create a new message object
8 #message #send create a function to create a new message object
function sendMessage() {
    var newMessage = new Message($('input[name = "messagetext"]').val());
    console.log(newMessage)
    createMessageElement(newMessage);
    $('input[name = "messagetext"]').val('')
}
function sendMessage ( ) { var newMessage = new Message ( $ ( 'input[name = "messagetext"]' ) . val ( ) ) ; console . log ( newMessage ) createMessageElement ( newMessage ) ; $ ( 'input[name = "messagetext"]' ) . val ( '' ) }
8 #message #send create a function to create a new message object
8 #message #send create a function to create a new message object
// #8 #input #real take input from message bo
 // #8 #input #clear the input after message has been sent
