constalphabet=`abcdefghijklmnopqrstuvwxyz`;constaCode=alphabet.charCodeAt(0);functioncaesarCipherEncryptor(str, key) {constanswer= [];for (let i =0; i <str.length; i++) {let code =str.charCodeAt(i) - aCode; code += key; code %=26;answer.push(alphabet[code]); }returnanswer.join('');}// Do not edit the line below.exports.caesarCipherEncryptor = caesarCipherEncryptor;