Shifting Letters
A simple cipher.
The Sliding Trick! ➡️
Today we learn the Caesar Cipher: we slide every letter forward a few steps! ➡️🔐
console.log('Let us slide some letters! ➡️')Slide by One 1️⃣
If we shift a forward by 1, it becomes b. Easy! 1️⃣
let n = 'a'.charCodeAt(0)
console.log('a shifted by 1:', String.fromCharCode(n + 1))All lessons in this course
- What Is a Code?
- Shifting Letters
- Encoding
- Decoding