0Pricing
Javascript for Kids · Lesson

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

  1. What Is a Code?
  2. Shifting Letters
  3. Encoding
  4. Decoding
← Back to Javascript for Kids