JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content"></div>
JavaScript
const scores = [34, 65, 23, 54];
html = scores.findIndex(function(element) {
if(element == 23) {
return element;
}
});
html = doubleScores.join(', ');
document.getElementById('content').innerHTML = html;