I am a freecodecamp camper. And I need a help to understand how does the below code works which is an advanced solution.
function rot13(str) { // LBH QVQ VG!
str.replace(/[A-Z]/g, L => String.fromCharCode((L.charCodeAt(0) % 26) + 65));
}
// Change the inputs below to test
console.log(rot13("AAA !"));
I do have a little idea on why we are using modulus 26 and then adding 65. but I dont understand what L=> is actually doing. I also understand a bit of regular expression. Please break down this code.