<meta charset="utf-8">
<script type="text/javascript">
var USD
fetch('https://www.cbr-xml-daily.ru/daily_json.js')
.then(data => data.json(data))
.then(({
Valute: {
USD
}
}) => {
USD = `${USD.Value}`
alert(USD)
})
alert(USD)
</script>