oppurecodice:var foo = "albero"; foo.substring(foo.length-1)+foo.substring(1,foo.length-1)+foo.substring(0,1)
codice:var foo = "albero"; foo.replace(/(^\w)(.*)(\w$)/, "$3$2$1");
oppurecodice:var foo = "albero"; foo.substring(foo.length-1)+foo.substring(1,foo.length-1)+foo.substring(0,1)
codice:var foo = "albero"; foo.replace(/(^\w)(.*)(\w$)/, "$3$2$1");