Search posts, tags, users, and pages
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...
Lucy
@LilKittyKat
A new coder sharing my learning!
I am a learning coder from the UK, and am learning Javascript but I am quite proficient in Python!
Markdown supported · ⌘↵ to post
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);
You basically did that whole thing in one line! Yay you!! Thank you so much for giving it a go!
Lucy hehe yup! I think I not only challenged myself to solve it but to also solved it with the smallest lines of code lol XD
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);