
JavaScritp.getElementByID
Authored by Coachs Desarrollo
Computers
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el propósito principal de getElementById en JavaScript?
Obtener el primer elemento de un array.
Acceder a un elemento del DOM mediante su ID.
Crear un nuevo elemento en el DOM.
No vuelve nada del DOM
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el tipo de dato que devuelve getElementById?
Un string
Un número
Un elemento del DOM
Booleano
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué sucede si no existe ningún elemento con el ID proporcionado en el documento?
Devuelve un error.
Retorna null.
Se elimina el elemento
Retorna un array vacío
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la sintaxis correcta para utilizar getElementById?
getElementById('elemento').
getElementById[elemento].
getElementById.elemento.
document('elemento')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la forma más común de utilizar getElementById en un script de JavaScript?
Asignar el resultado a una variable.
Imprimir directamente el resultado en la consola.
Utilizarlo dentro de una función de flecha.
Para llamar una funcion
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Puede un documento tener múltiples elementos con el mismo ID?
Sí, pero es una mala práctica
No, el ID debe ser único en el documento.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué método se puede utilizar para cambiar el contenido de un elemento seleccionado con getElementById?
`setContent()`
`innerText`
``innerHTML
innerHTML
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
Códigos QR
Quiz
•
Professional Development
10 questions
Repaso_Procesador_Texto
Quiz
•
Professional Development
14 questions
Microprocesador
Quiz
•
10th Grade - Professi...
10 questions
Función CONTAR
Quiz
•
KG - Professional Dev...
10 questions
Tarjetas gráficas
Quiz
•
Professional Development
8 questions
Modulo 2-Clase 1-Tecnologias Internet
Quiz
•
Professional Development
12 questions
Smart Draw 10
Quiz
•
Professional Development
10 questions
SyO. Teoría General de Sistemas
Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development