Print character that appear more then Once?
00:57 11 Sep 2026

I just start javascript couple of days ago and i am encountering an logical error:

let text = 'hii my name is javascript and i am programming langauge which make website interactive';

let repeatedText = [];

for (let char of text){
    if (repeatedText.includes(char)){
        repeatedText.push(char)
    }
}

console.log(repeatedText);

I am supposed to get the value those appear more then once. but it didn`t go as expectation.

javascript