JSFiddle - React, Tailwind, and code Playground

by sushanth009

HTML

<input id="btn1" value="Click" type="button" />

JavaScript

var nex = 'a'.charCodeAt(0);
console.log(nex)
$('#btn1').on('click', function() {
   var curr = String.fromCharCode(nex++)
   console.log(curr)
});