JSFiddle - React, Tailwind, and code Playground

by Edward Tanguay

HTML

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

JavaScript

let html = "";
const scores = [34, 65, 23, 54];
scores.forEach(function (score) {
	if(score == 34) {
  	html = "Yes, 34 was found.";
    break;
  } 
});
html = html === "" ? "34 was not found." : html;

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