bigboismith@lemmy.world to Programming Horror · 5 months agoFound this beauty in one of my old projects from schoollemmy.worldimagemessage-square15linkfedilinkarrow-up160arrow-down13
arrow-up157arrow-down1imageFound this beauty in one of my old projects from schoollemmy.worldbigboismith@lemmy.world to Programming Horror · 5 months agomessage-square15linkfedilink
minus-squareHello Hotel@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-23 months agoThis is just as easy to write, just as sloppy but hopefully way easier to read. Game.onload = (data)=>{ let a = data; a = JSON.decode(a)["saveGame"][0]; a = JSON.decode(a)["SaveGame"]; return a; }
This is just as easy to write, just as sloppy but hopefully way easier to read.