DOM stands for Document Object Model

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Comments in JavaScript can be done with

//

Declared variables with no initial value are set to 0.

False

Text nodes can have children nodes

False

The h1 element tag is a text node.

False

The keyword let is used to define a global variable in JavaScript.

False

There is no difference between live and static node lists.

False

getElementById returns a collection of DOM nodes matching a certain id value.

False

getElementById returns the last element found with a given id value.

False

querySelector is used to select nodes by MySQL.

False

What is the JavaScript syntax for printing values to the console?

console.log(5);

Which statement is correct for declaring a constant variable in JavaScript?

const x;

What is the output of the following code snippet: const x = 5; x = 56; console.log(x);

*5

Used to represent text in HTML elements in the DOM tree.

*Element Nodes

his function will return a collection of nodes given an HTML tag.

*getElementsByClassName

This function will return a collection of nodes given a CSS selector.

*not getElementsByClassName

Used to represent the attributes of an HTML element in the DOM tree.

*text nodes

What is the output of the following code snippet: if (1 = = 1) { let x = 6; } console.log(x);

*undefined

What is the output of the following code snippet:

*undefinned

What value is assigned to uninitialized variables in JavaScript

undefined

getElementById returns the first element that matches a given id value.

True

DOM stands for Document Object Model

True

Declared variables with no initial value are set to undefined.

True

Functions declarations in JavaScript are hoisted.

True

In JavaScript, Closures are required to preserve the arguments and variables in all scopes it references.

True

In JavaScript, when using try-catches, the finally block, if present, is always executed.

True

One import feature of using JavaScript on the front-end is the manipulation of the DOM.

True

The DOM is a tree-like structure that represents an HTML document.

True

When passing primitives in JavaScript, these are passed by value.

True

This function will return a node given a CSS selector.

querySelector

What HTML tag is used to add JavaScript code to an HTML document?

script


Set pelajaran terkait

ISTQB Foundation Extension Agile Tester Chapter 3: Agile Testing Methods, Techniques, and Tools

View Set

(Chapter 16 HW) Exchange Rates and International Capital Flows

View Set

The Great Gatsby Vocabulary Chapters 1-3

View Set

Chapter 48: Care of Patient with Ear Problems

View Set

Macroeconomics Chapter 16 Monetary System

View Set

TRUE/FALSE QUESTIONS FOR CHAPTER 6

View Set