main.js
// Check given letter is in input list whether or not
Check given letter is in input list whether or not
Check given letter is in input list whether or not
function findLetter(letter) { 
    for (let index = 0; index < inputs.length; index++) {
        if (inputs[index] == letter)
            return index;
    }
}
function findLetter ( letter ) { for ( let index = 0 ; index < inputs . length ; index ++ ) { if ( inputs [ index ] == letter ) return index ; } }
Check given letter is in input list whether or not
Check given letter is in input list whether or not