You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function unique_char(str1)
|
|
{
|
|
var str=str1;
|
|
var uniql="";
|
|
for (var x=0;x < str.length;x++)
|
|
{
|
|
|
|
if(uniql.indexOf(str.charAt(x))==-1)
|
|
{
|
|
uniql += str[x];
|
|
|
|
}
|
|
}
|
|
return uniql;
|
|
}
|
|
console.log(unique_char("thequickbrownfoxjumpsoverthelazydog"));
|