Quiz: Data Types and Structures
Please enjoy this self-check quiz to review some of the concepts from this section.
Does JavaScript require us to declare the Data Type of a variable?
What Data Type(s) are assigned to numeric values?
What command allows you to break apart a String into an Array based on a chosen character?
break()
join()
split()
separate()
split()
command allows us to break apart a String into an Array.null
and undefined
mean the same thing.
null
is typically used to indicate missing data, while undefined
means that the value has not been initialized.What are the values possible for a Boolean Data Type?
The process of marking certain characters (such as apostrophes) so they work within Strings is:
Objects in JavaScript can be thought of as collections of related what?
Name the index of the item 'apple' in this Array: ['apple', 'orange', 'banana']
What command is used to remove the last item in an Array?
pop()
shift()
join()
splice()
pop()
command is used to remove the last item in an Array.What command is used to remove the first item in an Array?
pop()
shift()
join()
splice()
shift()
command is used to remove the first item in an Array.What command is used to remove a group of items from within an Array?
pop()
shift()
join()
splice()
splice()
command is used to remove a group of items within an Array.What programming languages support JSON as a data interchange format?
What command is used to create a String from the items in an Array?
pop()
shift()
join()
splice()
join()
command is used to create a String from the items in an Array.The proper format for an expression within a Template Literal is:
[expression]
$expression
${expression}
${expression}
format for expressions.Given let key="foo";
and let myObject = {foo: 42};
, which of the following are true
?
myObject.foo == 42
myObject(foo) == 42
myObject[key] == 42
myObject['foo'] == 42
If let a = {};
and let b = [];
, which statement is true?
a
is a String and b
is an Object.a
is an Object and b
is an Array.a
is an Array and b
is an Object.a
is Undefined and b
is also Undefined.a
is an empty Object and b
is an empty Array.Visit Quiz Online
The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.