JSFiddle - React, Tailwind, and code Playground
HTML
<p>“ Java is to JavaScript what Car is to Carpet. ” - Chris Heilmann</p>
<p>“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ” - Edsger Dijksatra</p>
JavaScript
// Demethodizing the Array method, forEach(), into a generic "each"
var each = Function.prototype.call.bind([].forEach);
var nodeList = document.querySelectorAll("p");
each(nodeList,bold);
function bold(node){
node.style.fontWeight ="bold";
}