JSFiddle - React, Tailwind, and code Playground
HTML
<div>I want to retreive the euro character from the button, get the html code that belongs to it and output it in the console.log. So the console.log should state: "Euro-symbol: (html code here)!!!"</div>
<button id="alt-char">Euro-symbol: €!!!</button>
JavaScript
var a = document.getElementById('alt-char').innerHTML;
console.log(a);