"Error & Solution _ if(Ternary Operator), Evaluating true and false"
<Error code>
const onClickButton = () => {
if(!word || (newWord.length === 3 || word[word.length - 1] === newWord[0])){
// ...code
}
};
In this function, the first condition checks for newWord.length === 3. However, even if newWo...
garamyoon.hashnode.dev1 min read