225k views
3 votes
If we have a book object but we do not give it a "subtitle" property, the following code will return undefined. bar len = book.subtitle.length;

a) true
b) false

User StaticBR
by
8.2k points

1 Answer

0 votes

Answer:

The answer is "Option a"

Step-by-step explanation:

In the given question, this statement is true because in this bar len as a reference is declared that creates a book class object that calls the subtitle length method, that's why it is true.

User Jimh
by
7.8k points

Related questions

asked Oct 12, 2024 31.5k views
Rags asked Oct 12, 2024
by Rags
8.3k points
1 answer
0 votes
31.5k views
1 answer
2 votes
225k views