ss

function reverseString(str){
let reversedStr = ”;
for(let i = str.length-1; i>=0; i–){
reversedStr = reversedStr + str[i];
}
return reversedStr;
}

const reversedString = reverseString(“shivamsahu”);
console.log(reversedStrin…


This content originally appeared on DEV Community and was authored by Shivam Sahu

function reverseString(str){
    let reversedStr = '';
    for(let i = str.length-1; i>=0; i--){
      reversedStr = reversedStr + str[i];
    }
   return reversedStr;
}

const reversedString = reverseString("shivamsahu");
console.log(reversedString);


This content originally appeared on DEV Community and was authored by Shivam Sahu


Print Share Comment Cite Upload Translate Updates
APA

Shivam Sahu | Sciencx (2024-06-25T13:21:06+00:00) ss. Retrieved from https://www.scien.cx/2024/06/25/ss/

MLA
" » ss." Shivam Sahu | Sciencx - Tuesday June 25, 2024, https://www.scien.cx/2024/06/25/ss/
HARVARD
Shivam Sahu | Sciencx Tuesday June 25, 2024 » ss., viewed ,<https://www.scien.cx/2024/06/25/ss/>
VANCOUVER
Shivam Sahu | Sciencx - » ss. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/25/ss/
CHICAGO
" » ss." Shivam Sahu | Sciencx - Accessed . https://www.scien.cx/2024/06/25/ss/
IEEE
" » ss." Shivam Sahu | Sciencx [Online]. Available: https://www.scien.cx/2024/06/25/ss/. [Accessed: ]
rf:citation
» ss | Shivam Sahu | Sciencx | https://www.scien.cx/2024/06/25/ss/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.