+ 9

can anyone explain me this code

if u r free so plz explain me each and every words of this code https://code.sololearn.com/W23ax4uvCCGc/?ref=app

10th May 2017, 4:57 PM
Prashanth Kumar
Prashanth Kumar - avatar
11 Answers
+ 3
yes why not . the var upsmall is string of upside character in sequence. ie a -> z then i take a input from user in var word. the i converted word to lowercase. and each character has a ascii value. a = 97 and z = 122 then there is a inverse loop starting from endings of word to 0. then i get ascii value of each character in word. then i subtract it from 97 to get index. ex for character a the ascii is 97. 97-97 gives me 0 it means at the index 0 of upsmall string i will get upside a. so newwrd+= upsmall[index]; if the character is a symbol then just add the symbol to newwrd. and finally write newrd to document.
11th May 2017, 7:46 AM
MR Programmer
MR Programmer - avatar
+ 8
oh thank you mr programmer but can u explain me each line plz i still didn't understand plz
11th May 2017, 7:28 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 8
thank you mr programmer 😃😃😃😃😃
11th May 2017, 4:40 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 8
can u tell me whats the use of charCodeAt( ) function
11th May 2017, 4:47 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 7
This code is fairly hard to read, there's some unnecessary lines and poorly named variables. So, I'm not going to explain every line of code, rather the process done to make the program work. There's a String containing all the upside down characters of the alphabet. By the looks of it, the code grabs the upside down characters that are equal to / matching the corresponding inputted characters. Then uses the upside down characters by writing them out in reverse order. Pretty cool since it's read-able if you turn your phone upside down. Though, only works for lower-case letters.
10th May 2017, 5:21 PM
Rrestoring faith
Rrestoring faith - avatar
+ 7
thank you bro
11th May 2017, 4:50 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
here is the simple version of code. https://code.sololearn.com/W32f81M2Bsa3/?ref=app it may help you . one more thing please comment down below that you understood this code. i will remove this code.
10th May 2017, 6:00 PM
MR Programmer
MR Programmer - avatar
+ 1
welcome ...
11th May 2017, 4:47 PM
MR Programmer
MR Programmer - avatar
+ 1
yes it returns the ascii value of the character
11th May 2017, 4:49 PM
MR Programmer
MR Programmer - avatar