JS Test

Javascript code posted
created at 30 Dec 03:40, updated at 03 Jan 00:12

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
function KeyCode(event) {
  this.event = event;

  this.normalize = function() {
    return (this.event.keyCode ? this.event.keyCode : this.event.which);
  }

  this.isEnter = function() {
    return this.normalize() == 13;
  }
}

var stillGlobal = "Just some string"
279 Bytes in 3 ms with coderay