Advertisement
borsha06

js_p27

May 7th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function remove_character(str, char_pos)
  2.  {
  3.   part1 = str.substring(0,4);
  4. part1 = part1.toUpperCase();
  5.  if(part1 == 'java'))
  6.   return true;
  7.   else
  8.     return false
  9.  
  10.  }
  11. alert( remove_character('ghyu'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement