Manipulación del DOM
![]() |
![]() |
![]() |
Título del Test:![]() Manipulación del DOM Descripción: 4 preguntas sobre datos y manipulación del DOM |




Comentarios |
---|
NO HAY REGISTROS |
Dado este código: document.querySelector('.primary') ¿Qué tipo de dato JavaScript es el parámetro de la función querySelector?. number. boolean. object. string. Dado el siguiente código: document.querySelector('.primary').textContent Relaciona cada concepto. document. querySelector. '.primary'. textContent. ¿Qué hace este código ? Ayuda: https://www.w3schools.com/howto/howto_js_toggle_class.asp document.querySelector('.primary').classList.toggle('active'). Dado este código: const quotes = [ { quote: "Life is too short and sweet to be spent by cribbing and complaining about things. Here are some random quotes about the most wonderful gift that we've got", author: " Life" }, { quote: "Humor is richly rewarding to the person who employs it. It has some value in gaining and holding attention. But it has no persuasive value at all", author: "John Kenneth Galbraith" }, { quote: "God save me from my friends. I can protect myself from my enemies.", author: "Claude Louis Hector de Villars " }, { quote: "The price of anything is the amount of life you exchange for it.", author: "David Thoreau" }, { quote: "Life is like a landscape. You live in the midst of it but can describe it only from the vantage point of distance. ", author: "Charles Lindbergh" }, { quote: "A critic is someone who never actually goes to the battle, yet who afterwards comes out shooting the wounded.", author: "Tyne Daly" } ]; ¿Cómo se evalua la siguiente expresión? (No copiarlo en Visual Studio!!) console.log(quotes[quotes.length-1].author.toUpperCase()). 'A CRITIC IS SOMEONE WHO NEVER ACTUALLY GOES TO THE BATTLE, YET WHO AFTERWARDS COMES OUT SHOOTING THE WOUNDED.'. 'TYNE DALY'. 'LIKE'. undefined. |