Skip to content

balalearnstocode/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Caesar cipher

  1. Project description link

  2. Project Aim: Write a function which takes a ROT13 encoded string as input and returns a decoded strin.

  3. Condition: All letters will be uppercase.

  4. Condition: Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.

Solution Process:

  1. use charCodeAt() to get code UTF code of a character

  2. Add 13 to get ROT13 value of character if within alphbet range(65 <-> 91)

  3. Get character from code usung String.fromCharcode().

  4. Concatenate characters into a string.

About

Caesar cipher: Freecodecamp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy