JSFiddle - React, Tailwind, and code Playground
by brombomb
JavaScript
// Code 1
var RE = /\d{3}-\d{3}\-d{4}/;
// Code 2
var i = 1;
function test() {
for (i = 0; i < 5; i++;) {
}
console.log(i);
}
test();
console.log(i);
// Code 3
jQuery() {
methodName: function (selector) {
var className = " " + selector + " ",
i = 0,
l = this.length;
for (; i < l; i++) {
if (this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf(className) >= 0) {
return true;
}
}
return false;
},
}