What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-25 16:14:08
freecodecamp caesars cipher
const rot13 = str => { let decodedCipher = '' // The number 65 represents A which also is the begining of our alphabets. // The number 90 represents Z which also is the end of our alphabets. // Space and any other non-alpha character is less t... Add solution -
Javascript 2021-10-15 00:16:08
javascript ean13 checksum generate
function getLastEan13Digit(ean) { if (!ean || ean.length !== 12) throw new Error('Invalid EAN 13, should have 12 digits'); const multiply = [1, 3]; let total = 0; ean.split('').forEach((letter, index) => { total += parseInt(letter, 10)... Add solution