Question: I created a ratio button in the html file I want to that the even numbers are highlighted when the even number button is click.

I created a ratio button in the html file I want to that the even numbers are highlighted when the even number button is click.

I created a ratio button in the html file I want tothat the even numbers are highlighted when the even number button is

function highlight() { let divABC = document.querySelectorall("div.abc"); let isVowel = x => x == "A" || x == "E" || x == "I" || x == "0" || x == "U" | let is let value = this.value; x == "Y" divABC.forEach(e => { let letter = e.dataset.abc; e.className = "abc"; if (value == "vowel" && isVowel(letter)) _e.className = "abc high-light"; if (value == "consonant" && !isVowel(letter)); e.className = "abc high-light"; if(value =="even" && isVowel(letter) ), e.className = "abc high-light"; Highlight: O Vowel O Consonant O None O Even A, B, C, D, E, F | G | Ho 1o do K, L, M, NA 0, P Q, R, S, T, U, VW, X, Y28 22 function highlight() { let divABC = document.querySelectorall("div.abc"); let isVowel = x => x == "A" || x == "E" || x == "I" || x == "0" || x == "U" | let is let value = this.value; x == "Y" divABC.forEach(e => { let letter = e.dataset.abc; e.className = "abc"; if (value == "vowel" && isVowel(letter)) _e.className = "abc high-light"; if (value == "consonant" && !isVowel(letter)); e.className = "abc high-light"; if(value =="even" && isVowel(letter) ), e.className = "abc high-light"; Highlight: O Vowel O Consonant O None O Even A, B, C, D, E, F | G | Ho 1o do K, L, M, NA 0, P Q, R, S, T, U, VW, X, Y28 22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!