JS Objects
Posted on Apr 4th, 2022
Today’s topics
- Introduction to the object data structure in JavaScript
- Storing data in and retrieving data from objects
🎯 Project: Build a customer directory
Link to assignment invitation For Tuesday Morning, 4/5: Start HTML and get at least one customer rendered on the page
Examples from class that will help you
- JS Objects with The Simpsons
- Find People By City
- Monday afternoon video about objects Access Passcode: t^k8w.US
🔖 Resources
- MDN JavaScript Object Basics
- Eloquent JavaScript, chapter 4: Objects and Arrays
- blog post on JS objects
- Prettier Code Formatter This is information about the extenstion that you can (and should) install in VS Code.
- How to format code with Prettier
⭐ EXTRA/TMI
- Podcast on learning to code with the founder of Code Newbie, Saron Yitbarek
- Rebecca Murphey on using objects to write more concise code (short video)
- Lodash - This is a JS utility library – lots of handy little functions that can make it easier to do common things
- Moment.js - This is a very commonly used library for working with dates in JS. It’s big and kind of old, but handy for reformatting how dates are displayed. You could also check out modern alternatives like Luxon or date-fns.
🦉 Code, Notes & Videos
- Notes on JS objects
- Example of a basic working calculator - This is just one way you can do this!
- Example: working with JS object data and the DOM