Here are 10 potential recall questions for the given content:
Flashcard 1:
Question: What are the three functions that can be used to convert nonnumeric values into numbers?
Answer: The Number() casting function, the parseInt() function, and the parseFloat() function.
Flashcard 2:
Question: What does the Number() function return when applied to null?
Answer: 0
Flashcard 3:
Question: What does the Number() function return when applied to undefined?
Answer: NaN
Flashcard 4:
Question: What happens when the Number() function is applied to a string containing only numeric characters?
Answer: It is converted to a decimal number.
Flashcard 5:
Question: True or False: When the Number() function is applied to a string, leading zeros are preserved.
Answer: False, leading zeros are ignored.
Flashcard 6:
Question: Fill in the blank: If a string contains a valid _________ format, the Number() function will convert it to the appropriate numeric value.
Answer: floating-point
Flashcard 7:
Question: What does the Number() function return when applied to an empty string?
Answer: 0
Flashcard 8:
Question: What happens if the Number() function is applied to a string containing non-numeric characters?
Answer: It returns NaN.
Flashcard 9:
Question: What methods are called on an object before the Number() function attempts to convert it to a number?
Answer: valueOf() and toString()
Flashcard 10:
Question: List the rules for how the Number() function converts Boolean values:
Answer:
- true converts to 1
- false converts to 0