Skip to content

Instantly share code, notes, and snippets.

@irem-kurt
Forked from halitbatur/discussion.md
Created April 10, 2022 06:52
Show Gist options
  • Save irem-kurt/61a4c49ae1b03e4a45d41d6d1ba9c24d to your computer and use it in GitHub Desktop.
Save irem-kurt/61a4c49ae1b03e4a45d41d6d1ba9c24d to your computer and use it in GitHub Desktop.
Object discussion questions

Object Discussion Questions

There is some coding in this discussion. Feel free to write them in a REPL or in the comments below.

  1. How is an object different from an array?
  2. How does const work with objects?
  3. Explain the difference between bracket syntax and dot syntax. Give an example of something that works with bracket syntax but not dot syntax. Give an example of something that works with dot syntax but not bracket syntax.
  4. What are computed properties? Write an example code.
  5. What is the difference between Object.keys and Object.entries? Write example code using both of them.
  6. How do we get only the values of an object?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment