From c6cc0cb2b7d3892758541a0a186be61794177ab0 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Tue, 29 Dec 2020 12:29:21 +0200 Subject: [PATCH] Update caesarCipher.md --- snippets/caesarCipher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/caesarCipher.md b/snippets/caesarCipher.md index 2a8e9397e..42f65225d 100644 --- a/snippets/caesarCipher.md +++ b/snippets/caesarCipher.md @@ -7,7 +7,7 @@ Encrypts or decrypts a given string using the Caesar cipher. - Use the modulo (`%`) operator and the ternary operator (`?`) to calculate the correct encryption/decryption key. - Use the spread operator (`...`) and `Array.prototype.map()` to iterate over the letters of the given string. -- Use `String.prototype.charCodeAt()` and `String.fromCharCode()` to convert each letter appropriately, ignoring special characters, spaces et.c +- Use `String.prototype.charCodeAt()` and `String.fromCharCode()` to convert each letter appropriately, ignoring special characters, spaces etc. - Use `Array.prototype.join()` to combine all the letters into a string. - Pass `true` to the last parameter, `decrypt`, to decrypt an encrypted string.