Anonymous user
Substring/Top and tail: Difference between revisions
{{header|Liberty BASIC}}
(Go solution) |
({{header|Liberty BASIC}}) |
||
Line 218:
alert("socks".slice(0, -1)); // strip last character
alert("brooms".slice(1, -1)); // strip both first and last characters</lang>
=={{header|Liberty BASIC}}==
<lang lb>
string$ = "Rosetta Code"
Print Mid$(string$, 2)
Print Left$(string$, (Len(string$) - 1))
Print Mid$(string$, 2, (Len(string$) - 2))
</lang>
=={{header|Lua}}==
|