Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_character(str, char_pos)
- {
- part1 = str.substring(0,4);
- part1 = part1.toUpperCase();
- if(part1 == 'java'))
- return true;
- else
- return false
- }
- alert( remove_character('ghyu'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement