Lab03_518H0545/js/exercise03.js
//make text bold and nothing else
make text bold and nothing else
make text bold and nothing else
function makeitBold(){
    let mess_id = document.getElementById("message_show");
    let bold = document.getElementById("bold");
    if(bold.checked){
        mess_id.style.fontWeight = "bold";
    }
    else{
        mess_id.style.fontWeight = "normal";
    }
}
function makeitBold ( ) { let mess_id = document . getElementById ( "message_show" ) ; let bold = document . getElementById ( "bold" ) ; if ( bold . checked ) { mess_id . style . fontWeight = "bold" ; } else { mess_id . style . fontWeight = "normal" ; } }
make text bold and nothing else
make text bold and nothing else