Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago