My solution works as expected in Node but I had to do weird things for module.exports to work. How should I have formatted the module.exports in the given format?
Format I was supposed to use:
let ROT13Cipher = {
// what goes here???
};
module.exports = ROT13Cipher;
My solution works as expected in Node but I had to do weird things for module.exports to work. How should I have formatted the module.exports in the given format?
Format I was supposed to use:
My own format:
To run the file, cipher.encode('Hello Jen', 13) where 13 is the offset for the custom cipher