JSFiddle - React, Tailwind, and code Playground

by Edward Tanguay

HTML

<div id="content"></div>

JavaScript

const scores = [34, 65, 23, 54];
const doubleScores = scores.map(x => x + 2);
html = doubleScores.join(', ');

document.getElementById('content').innerHTML = html;