There is no way to update the message as console.log does not return any id/reference or in-built method that we can use. You can find a workaround using clear method that console provide.
function logMessage(message) {
console.clear()
console.log(message)
}