JSFiddle - React, Tailwind, and code Playground
by alr3
HTML
<div id="orange-cost"></div>
JavaScript
var whatThoseOrangesCostFool = function(numberOfOranges) {
var costPerOrange = 5.00;
var totalCost = (numberOfOranges * costPerOrange);
alert(totalCost);
$('#orange-cost').html('$' + totalCost + ' worth of oranges you asked for there sir');
};
whatThoseOrangesCostFool(2);