JavaScript Algorithms and Data Structures Projects - Caesars Cipher

Tell us what’s happening:
I am stuck trying to figure out what’s the range of alphabet characters add as a condition in the if statement. Is there any link to a website website where I could find all characters along with their respective codes, I get the concept of charCodeAt on the MDN documentation but I there is reference to the characters.

Your code so far

function rot13(str) {
  const newArr = str.split(' ')
  var ch = ""
  for (let i = 0; i > newArr.lenght; i++) {
    var ch = newArr[i].charCodeAt()
    if (// between alphabet characters// )
  return str;

var text = "a"
let code = text.charCodeAt(0)
rot13("SERR PBQR PNZC");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Challenge: JavaScript Algorithms and Data Structures Projects - Caesars Cipher

Link to the challenge:

I can’t tell you much as it is a certification challenge, but think if you can’t find it, maybe there is another type of characters that can help you?

Look for information about it.

1 Like

Thank you, problem solved: ASCII Table - ASCII character codes -

Exactly, you are well on your way.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.