Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 571d60b

Browse files
JavaScript Object
1 parent ce1230e commit 571d60b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎FreeCodeCamp/jsObjects.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ console.log(myDog["friends"][0]) // Debugger
1414
console.log(myDog[0]) // undefined
1515
console.log(myDog.bark) // Bow Bow
1616
console.log(myDog['bark']) // Bow Bow
17-
// console.log(myDog[bark]) // it will through an error saying bark is not defined
17+
// console.log(myDog[bark])
18+
// it will through an error saying bark is not defined
1819

1920
// Delete a property from an object
2021
console.log(myDog)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /