<script>
let myRadio = document.querySelector('input[name="myRadio"]:checked');
console.log(myRadio.value);
</script><script>
let a = document.getElementsByClassName('myR');
</script><script>
for (var i=0; i < a.length; i++) {
if(a[i].checked) {
console.log(a[i].value);
}
}
</script><script>
let e = document.querySelectorAll('.myRadio:checked');
for (let i=0; i < e.length; i++) {
console.log(e[i].value);
}
</script>