Skip to content

Commit f92f622

Browse files
committed
Clarify prediction explanation in address.js comments
1 parent 62fe3e1 commit f92f622

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Sprint-2/debug/address.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Predict and explain first...
22

3-
/* Prediction - the house number would return as undefined */
3+
/* Prediction - the house number would return as undefined.
4+
5+
Explaination - "address" is a plain javascript object, not an array, arrays make use of the numeric index positions like it was used in
6+
the initial code but objects use key value pairs (properties) */
47

58
// This code should log out the houseNumber from the address object
69
// but it isn't working...

0 commit comments

Comments
 (0)