Сергей Ракипов,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<input type="radio" value="1" class="radio" name="test">
<input type="radio" value="2" class="radio" name="test" checked="checked">
<input type="radio" value="3" class="radio" name="test">
<input type="radio" value="4" class="radio" name="test">
<input type="radio" value="5" class="radio" name="test">
<div class="out_console"></div>
<script>
let radioCheck = document.querySelectorAll(".radio");
let outConsol = document.querySelector(".out_console");
const checkedShow = function() {
outConsol.innerHTML = "Ваша консоль - " + this.value;
}
function consl(){
for(let i=0; i<radioCheck.length; i++){
radioCheck[i].addEventListener("change", checkedShow);
if(radioCheck[i].checked){
checkedShow.bind(radioCheck[i])()
}
}
}
consl();
</script>
</body>
</html>