JSFiddle - React, Tailwind, and code Playground

HTML

<div id="values">
</div>

JavaScript

var obj= {"apple":3,"another":1,"more":5,"volvo":1,"audi":1,"ford":1};
alert(obj);
text = "";
$.each(obj,function(index,element){
text +=" <p>The value " +index+ " is repeated "+ element+ "time(s).</p>";
});
$("#values").append(text);