Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const i = 'gfudi';
const k = s => s.split('').map(c => String.fromCharCode(c.charCodeAt() - 1)).join('');
Copy link

domvo commented Feb 7, 2018

Could you explain the syntax regarding the [] after self/window?

Copy link

SeanSilke commented Feb 28, 2020

@domemvs it is transform gfudi to fetch by simple Caesar cipher.

Copy link

williamluisan commented May 10, 2020

does anybody know a reference where I can read about self with [...] (self[...]) syntax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment