Can you help me adjust this code in order to receive the desired output: "T-1 r-1 a-1 e-1 "
(other characters are repeating. So no need to print the others)
function checkUniqueCharacters() {
var uniqueChars = [];
var count = 0;
var fullName = "Trammell";
var stringLength = fullName.length;
for (var i = 0; i < stringLength; i++) {
for (var j = 0; j < stringLength; j++) {
var char1 = fullName.charAt(i);
var char2 = fullName.charAt(j);
if (char1 != char2) {
uniqueChars[count] = char1;
count++;
}
}
count = 0;
}
}