I am making a binary to text generator, and I need to see if I can use a console.log output in an if else statement; this is the code that I made and tried to use for this.
if (console.log(a,b,c,d,e,f,g,h) = 0 1 1 0 0 1 0 0) {console.log(‘d’)}
when i ran it, and the output was the desired outcome, and the if else was true, it would output the letter d into the console.