remove from string

Run Settings
LanguageJavascript
Language Version
Run Command
function remove(x,xs) { return xs.slice(0,x) + xs.slice(x+1); } var arr = "abcdefg"; // 0123456 var nu = remove(3,arr); console.log("s : "+arr); console.log("s': "+nu);
Editor Settings
Theme
Key bindings
Full width
Lines