I wonder how to get data from this code. I want to download these numbers, but I don't know how. I have already tried such methods but they did not work.
document.querySelector('.myclass');
document.querySelector('.myclass strong');
document.querySelectorAll('.myclass strong');
And this is the element from which I want to get the numbers. There are two ways on the site but I don't know which will be better so I send 2 items with numbers
<div class="myclass" role="button" tabindex="0">Next number: <strong>97554</strong></div>
or
<div class="anyclass">97532</div>