Given this snippet of HTML and jQuery code, what does the jQuery do?html Home Page 2 Subpage 1 Subpage 2jsvar m = $('.menu'), sm = $('.submenu');m.add(sm);m.css('font-weight', 'bold');

🎲 Try a Random Question  |  Total Questions in Quiz: 75  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
jQuery Quiz — practice the complete quiz, review flashcards, or try a random question.

jQuery MCQs For LinkedIn Skill Assessments.


Given this snippet of HTML and jQuery code, what does the jQuery do?<br>html<br><ul class='menu'><br> <li><a href='#' class='active'>Home</a></li><br> <li><a href='#'>Page 2</a></li><br></ul><br><ul class='active submenu'><br> <li><a href='#'>Subpage 1</a></li><br> <li><a href='#'>Subpage 2</a></li><br></ul><br><br>js<br>var m = $('.menu'),<br> sm = $('.submenu');<br>m.add(sm);<br>m.css('font-weight', 'bold');<br>