JSFiddle - React, Tailwind, and code Playground
HTML
<h3>
Industry Leader for <span class="gpYearsInBusiness">43</span> Years
</h3>
JavaScript
/*
{
test: $('.gpYearsInBusiness').length > 0,
yep: ['path/to/js/gp-years-in-business.js']
}
*/
$(document).ready(function () {
// include the following code in a script file
var yearNow = new Date().getFullYear();
console.log(yearNow)
var totalyears = yearNow - 1970;
$('.gpYearsInBusiness').html(totalyears);
});