JSFiddle

  • Char Counter Component

    No-Library (pure JS), HTML, CSS, JavaScript

    var USE_ANGULAR = false;
    
    function updateCount() {
      if (this.target.maxLength < 0) {
        return;
      }
    
      let start = this.target.maxLength;
      let count = this.target ...
  • Exercising KeyboardEvent

    No-Library (pure JS), HTML, CSS, JavaScript

    window.addEventListener("keydown", function(event) {
      let str = "KeyboardEvent: key='" + event.key + "' | code='" +
                event.code + "'";
      let el = document.createElement("span");
      el ...