# \#caeserscipher

**URL:** https://forum.freecodecamp.org/tag/caeserscipher/68.md

[Latest](https://forum.freecodecamp.org/latest.md) · [Categories](https://forum.freecodecamp.org/categories.md) · [Tags](https://forum.freecodecamp.org/tags.md)

---

## [Solve Caesers cipher Using a Switch?](https://forum.freecodecamp.org/t/solve-caesers-cipher-using-a-switch/117182)

<div class="topic-metadata">

**Author:** [@ogora](https://forum.freecodecamp.org/u/ogora)\
**Replies:** 6\
**Last updated:** [July 1, 2017, 1:48pm UTC](https://forum.freecodecamp.org/t/solve-caesers-cipher-using-a-switch/117182 "2017-07-01T13:48:12Z")

</div>

Can anyone show me how to use a switch statement to solve Caesers cipher challenged. I have tried ths code below but it does not work. Can anyone help rot13(str) { var code = ""; switch {switch (str) { case 'A': a…
