My for in loop for this array only checks the first variable

/// Online Javascript Editor for free
// Write, Edit and Run your Javascript code using JS Online Compiler
let try_again;
letters = [“B”, “A”, “C”, “D”,“E”];
letters2 = [“H”, “I”, “J”, “K”, “L”];
letters3 = [“J”, “A”, “V”, “A”, “S”, “C”, “R”, “I”, “P”, “T”]
secondary_array = ;

console.log(“Welcome to The Hangman Word Guessing Game!”)
new_game();
function new_game() {
lives = 5
secondary_array = ;
gamechosen = prompt("Would you like to guess word 1, 2 or 3? ");

if (gamechosen == "1") {
letter_guess(letters);
}

if (gamechosen == "2") {
letter_guess(letters2);
}

if (gamechosen == "3") {
letter_guess(letters3);
}

}

function letter_guess(word_arrayy) {
value = prompt("Guess a letter ");
hangman_check(word_arrayy, value);
}

function hangman_check(word_array, guessed) {

for (let element of word_array) {
    if (guessed == element) {
        secondary_array.push(element);
        console.log("The letter " + element + " was in the word!");
        console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        console.log("Letters Guessed: " + secondary_array)
        if (secondary_array.length == word_array.length) {
            console.log("Congratulations! Youve guessed the word: " + word_array);
            try_again = prompt("Would you like to play another game? ");
            if (try_again == "yes" || try_again == "Yes" || try_again == "Y" || try_again == "YES") {
                new_game();
                return
            }
        }
        console.log("Please guess again");
        console.log(element)
        letter_guess(word_array);
        return
    } else { 
        lives = lives - 1
        console.log("That letter was not in the word, Only " + lives + " lives left")
        if (lives < 1) {
            console.log("You lost :(");
            try_again1 = prompt("Would you like to play another game?");
            if (try_again1 == "yes" || try_again1 == "Yes" || try_again1 == "Y" || try_again1 == "YES") {
                new_game();
                return
            } else {
                console.log("Come back soon!");
                return
            }
            
        }
        letter_guess(word_array);
        return
    }
}

}

Please repost your code properly formatted to improve readability. When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

/// Online Javascript Editor for free
// Write, Edit and Run your Javascript code using JS Online Compiler
let try_again;
letters = ["B", "A", "C", "D","E"];
letters2 = ["H", "I", "J", "K", "L"];
letters3 = ["J", "A", "V", "A", "S", "C", "R", "I", "P", "T"]
secondary_array = [ ];

console.log("Welcome to The Hangman Word Guessing Game!")
new_game();
function new_game() { 
    lives = 5
    secondary_array = [ ];
    gamechosen = prompt("Would you like to guess word 1, 2 or 3? ");
    
    if (gamechosen == "1") {
    letter_guess(letters);
    }

    if (gamechosen == "2") {
    letter_guess(letters2);
    }

    if (gamechosen == "3") {
    letter_guess(letters3);
    }
}

function letter_guess(word_arrayy) {
    value = prompt("Guess a letter ");
    hangman_check(word_arrayy, value);
}




function hangman_check(word_array, guessed) {
    
    for (let element of word_array) {
        if (guessed == element) {
            secondary_array.push(element);
            console.log("The letter " + element + " was in the word!");
            console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
            console.log("Letters Guessed: " + secondary_array)
            if (secondary_array.length == word_array.length) {
                console.log("Congratulations! Youve guessed the word: " + word_array);
                try_again = prompt("Would you like to play another game? ");
                if (try_again == "yes" || try_again == "Yes" || try_again == "Y" || try_again == "YES") {
                    new_game();
                    return
                }
            }
            console.log("Please guess again");
            console.log(element)
            letter_guess(word_array);
            return
        } else { 
            lives = lives - 1
            console.log("That letter was not in the word, Only " + lives + " lives left")
            if (lives < 1) {
                console.log("You lost :(");
                try_again1 = prompt("Would you like to play another game?");
                if (try_again1 == "yes" || try_again1 == "Yes" || try_again1 == "Y" || try_again1 == "YES") {
                    new_game();
                    return
                } else {
                    console.log("Come back soon!");
                    return
                }
                
            }
            letter_guess(word_array);
            return
        }
    }
}

The array for the words isnt finished yet but I cant get it to recognize any other value but the first in the list

I went ahead and combined your posts for you. In the future, just reply to the original thread to add further updates.

Would you please post a link to this challenge?