Exam4Training

Which code change should be done for the console to log the following when ‘Click me!’ is clicked’

Which code change should be done for the console to log the following when ‘Click me!’ is clicked’

> Row log

> Table log
A . Remove lines 13 and 14
B. Change line 10 to event.stopPropagation (false) ;
C. Change line 14 to elem.addEventListener (‘click’, printMessage, true);
D. Remove line 10

Answer: B

Exit mobile version