JS Queryselector Radio revisado

document.querySelector('[name="your_name"]:checked').value;
Wide-eyed Wallaby