February JS Challenge 1: Answers!
Warning!
Please don't read this if you haven't done the challenge yet, or wish to only find out how it was done!
Solution
So let's take a look at our text to decipher:
54686973007761730061007265616c6c7900746f756768006368616c6c656e676500666f72006d652...
lilkittykat.hashnode.dev7 min read
Anqa Akram
Heyaaa Kittyy, imma abit late to the challenge party but I followed your advice of trying myself before looking up the solution. And lo and behold I did it! Thank you for challenging us :)) here was my solution (save for the 0 check for space) :
cipheredText = "54686973007761730061007265616c6c7900746f756768006368616c6c656e676500666f72006d65210042757400490064696400697421";
textLen = cipheredText.length;
RealText = "";
for (i=0; i<textLen;i+=2) {
RealText = RealText.concat(String.fromCharCode((parseInt(cipheredText[i]+cipheredText[i+1],16))));
}
console.log(RealText);