Ad

You've heard of Caesar's cipher so now I give to you LISA'S CIPHER WOOO!

Write a function 'lisaCipher' that accepts a keyword and a ciphered message as arguments. The function should decipher and return the normal message.

In the cipher the letters of the keyword becomes the first letters of a new alphabet. In the example below, 'a' becomes 'c', 'b' becomes 'h', and so forth. The rest of the letters of the original alphabet will come after the letters of the keyword.

Example:

keyword = 'chicken fingers'

msg = 'QLDETGRJF PCJKLD'

The new alphabet would become 'CHIKENFGRSABDJLMOPQTUVWXYZ'
The deciphered message would read 'SOMETHING RANDOM'

Assume keyword/message will be case insensitive. Return the uppercase of the message regardless.

function lisaCipher(keyword, msg) {
    
}