Lab03_518H0545/js/exercise03.js
//This function is for showing up an alert with message_id.value
This function is for showing up an alert with message_id.value
This function is for showing up an alert with message_id . value
function showMessage(){
    let mess_id = document.getElementById("message");
    let userMess = mess_id.value;
    if(userMess === ""){
        alert("Message is empty");
    }
    else{
        alert(userMess);
    }
}
function showMessage ( ) { let mess_id = document . getElementById ( "message" ) ; let userMess = mess_id . value ; if ( userMess === "" ) { alert ( "Message is empty" ) ; } else { alert ( userMess ) ; } }
This function is for showing up an alert with message_id.value
This function is for showing up an alert with message_id . value
//console.log(typeof userMess);