caesar cipher javascript code

JavaScript
const caesar = (text, shift) => {
  return String.fromCharCode(
    ...text.split('').map(char => ((char.charCodeAt() - 97 + shift) % 26) + 97),
  );
};
Source

Also in JavaScript: