Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-578464.js
File
recipe-578464.js
recipes/JavaScript/578464_Reversing_string/recipe-578464.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
//with cycle (not recommended)
2
function
StrReverse(str) {
3
var
res =
''
;
4
for
(
var
i = str.length - 1; i >= 0; --i)
Callers
nothing calls this directly
Calls
4
StrReverse
Function · 0.85
join
Method · 0.45
reverse
Method · 0.45
split
Method · 0.45
Tested by
no test coverage detected