JSFiddle - React, Tailwind, and code Playground

HTML

<input type="radio" name="A" value="AA">AA
<input type="radio" name="A" value="BB" checked>BB
<input type="radio" name="A" value="CC">CC

JavaScript

var AValue = Array.from(document.getElementsByName('A'))
											.filter(node => node.checked)
											.map(node => node.value)
											.pop();
console.log(AValue);