Chapter 7 Flashcards
The ____ class contains methods for manipulating numbers and properties that contain static values representing some of the numeric limitations in the JavaScript language.
Number
A(n) ____ array is an array whose elements are referred to with an alphanumeric key instead of an index number.
associative
The ____ class contains methods and properties for manipulating the date and time.
Date
When working with a date, JavaScript stores the month as a ____.
value from 0-11
The ____ class contains methods and properties for performing mathematical calculations in your programs.
Math
The ____ property is a built-in property that specifies the constructor from which an object was instantiated.
prototype
A(n) ____ is an object that has been created from an existing class.
instance
Objects are also called ____.
components
To add a property to a constructor function, you must add a statement to the function body that uses the ____ keyword.
this
To execute the same statement or command block for all the properties within a custom object, you can use the ____ statement.
for/in
The code (methods and statements) and data (variables and constants) contained in an encapsulated object are accessed through a(n) ____.
interface
Which Number class method can you use to convert a number to a string that is formatted with local numeric formatting style?
toLocaleString()
A(n) ____ function is a function that is used as the basis for a custom object.
constructor
To delete a specific property in a custom object, you use the ____ operator.
delete
Programming code and data that can be treated as an individual unit or component
object
Type of array that enables you to add object properties incorporating numbers
associative
Elements required for a source program to communicate with an object
interface
A template, or blueprint, that serves as the basis for new objects
class
Returns the square root of the specified value
sqrt()
Converts a number to a string using the number of decimal places specified
toFixed()
The easiest way to declare a custom object
literal
Returns a value rounded to the nearest integer
round()
Creates a Date object containing the current date
new Date()
A function assigned a name within a custom object
method
You can create a function that will be used as an object method by referring to any object properties it contains with the ____ reference.
this
Which method of the Math object rounds a value to the next lowest integer?
floor()
____ refers to cleaning up, or reclaiming, memory that is reserved by a program.
Garbage collection
Which class requires you to use a constructor?
Date
The term ____ refers to information contained within variables or other types of storage structures.
data
When creating an object using a literal, you separate multiple property-value pairs with ____.
commas