/*codex js*/
//common is fn. check is is.
var fn={},is={}/*var is lent*/
;
let a=0,b=0,c=0/*let is minor variable*/
,url='https://gnjo.github.io/'
;/*sequence mark the semicolon*/
let draw=()=>{ /*2nd let is minor varb*/}
,log=()=>{}
,f1=()=>{ /*short varb is f or f0 f1 f2 f3 ...*/ }
,cmd=function(ev){ /*event handler is full function*/}
,cmdEx=function(obj){return function(ev){ /*obj and event handler version*/
// this.textContent =obj.str;
}}
,send=(url,opt)=>{return new Promise(sol=>{
//promise
})}
,lex=(data)=>{
/*sync*/
return Promise.resolve(data).then(d=>{ /*async*/ })
}
;
fetch(url).then(d=>d.text())
.then(log)
.then(draw)
.then(f1)
;/*chaining is cool*/
document.body.onkeydown=cmd;
document.body.oninput=cmdEx({'str':'xxxxx'});
;