0
If we have a book object but we do not give it a "subtitle" property, will following code return undefined?
If we have a book object but we do not give it a "subtitle" property, will following code return undefined? bar len = book.subtitle.length;
7 ответов
+ 1
Why subtitle, can you give other property?
0
it doesn't meter. You can give it any name, just wondering does it returns "undefined"
0
@Jamie what value have a property that doesn't exist?
0
@Jamie If we theoretically have an object and this object doesn't have a "subtitle" property, will "bar len = book.subtitle" return undefined?