Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_character(str, char_pos)
- {
- part1 = str.substring(0,1);
- part3 = str.substring(str.length-1);
- strs = str.substring(1,str.length-1)
- alert(part1);
- alert(part3);
- alert(strs);
- return part3 + strs + part1
- }
- alert( remove_character('ghyu'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement