Chapter 7 Flashcards
Stringing Characters
What are Collection Data Types?
Data types that are comprised of smaller pieces.
What is a Character?
A string that contains exactly 1 element, such as ‘a’, ‘?’, or “ “ (single spaced)
What are Ordered Collections?
Collection types that allow their elements to be ordered.
What is Bracket Notation?
The special syntax that allows us to access the individual characters that make up a string.
What does an expression using bracket notation evaluate to when the index is invalid?
Undefined
What is an Object?
A collection of related data and operations.
What is a Method?
An operation that can be carried out on an object.
What is a Property?
A piece of data associated with an object.
What is Dot Notation?
Dictates that we use the object name, followed by a ‘.’ , followed by the property or method name.
console.log(typeof console);
What does string property Length tell us?
It tells us how many characters are in the string.
What does the toLowerCase() string method return?
It returns the string in all lowercase letters.
What is Immutable?
When an object cannot be changed. Strings are immutable, for example.
What is Method Chaining?
When string methods can be combined in a process.
What is a Bit?
Each 0 and 1 on a computer’s memory.
What is a Byte?
A set of 8 bits.