Найти на странице div с id container и записать в переменную

DOM JS

Quiz
•

Vladimir Bogatyrenko
•
Computers
•
11th Grade
•
6 plays
•
Medium
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let container = document.querySelector('#container')
let container = querySelector('#container')
Оба варианта верны
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Элемент записан в переменную element. Установить элементу красный цвет текста
element.color = red
element.color = 'red'
element.style.color = 'red'
element.color: red
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
const element = document.querySelector('.hello');
Как заменить текст в полученном элементе?
element.text = 'Это новый текст'
element.Content = 'Это новый текст'
element.textContent = 'Это новый текст'
element = 'Это новый текст'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод добавит узел element в конец container
container.appendChild(element)
container.append(element)
оба ответа верны
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Какой метод добавит обработчик клика по кнопке?
myButton.addEventListener('click', function handler() {
console.log('клик по кнопке');
})
myButton.removeEventListener('click', handler)
event.preventDefault()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Зачем нужен метод event.preventDefault()
Добавляет обработчик события
Удаляет обработчик события
Отменяет действие по умолчанию
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
let input = document.querySelector('input');
Как получить значение текстового поля input?
input.checked
input.text
input.Content
input.value
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
При помощи какого свойства можно получить доступ ко всем полям формы, используя их имена?
elements
input-name
input-value
9.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Дан скрипт
const students = ['Андрей', 'Маша', 'Даня'];
for ( let element of students ) { console.log(element); }
Что будет выведено в консоль?
Андрей
Маша
Даня
students[1]
students[2]
students[3]
Индексы массива
10.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
При помощи какого метода можно найти на странице коллекцию элементов?
querySelector
querySelectorAll
Оба ответа верны
Explore all questions with a free account
Similar Resources on Quizizz
14 questions
Databases

Quiz
•
10th - 12th Grade
15 questions
Access Vocabulary

Quiz
•
9th - 12th Grade
10 questions
WEB: Unit 3 Lesson 3 CSS Selectors By Class

Quiz
•
9th - 12th Grade
10 questions
Programação Front End - Lidando com JavaScript limitado

Quiz
•
11th Grade
10 questions
Визуално оформление на уеб сайт с използване на CSS

Quiz
•
11th Grade
15 questions
QUIZ RANGKAIAN MULTIPLEXER DECODER DAN REGISTER

Quiz
•
9th - 12th Grade
10 questions
CSS Quiz 5

Quiz
•
9th - 12th Grade
10 questions
Questionário formativo - SI - Mód 2

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
17 questions
CAASPP Math Practice 3rd

Quiz
•
3rd Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
13 questions
Cinco de mayo

Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
10 questions
4th Grade Math CAASPP (part 1)

Quiz
•
4th Grade
45 questions
5th Grade CAASPP Math Review

Quiz
•
5th Grade