JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript">
var email = "example@example.com";
function addNote(youremail){
alert("Your email is " + youremail);
}
</script>
<button onclick ='addNote(email)'>Add Note</button>