One Pager Cheat Sheet
- We will learn about the data structure
objectsand work withkey-valuepairs in JavaScript to store data easily and efficiently. Objectsallow for the storage ofkey-valuepairs to access data using keys (orproperties) forindices, and can also store multiple values for a single key in an array.Objectscannot haveduplicate keys, andJavaScriptonly allowsstringsto bekeysin anobject.- No two
keysin the same object can have the samename, even if the assignedvaluesare the same, as JavaScript does not allow an object to have two same keys. - Attempting to access the first element in a JavaScript
objectusing an index (like anarrayorstring) will returnundefinedsince objects consist of only key-value pairs. - Dictionaries have several built-in functions and properties for insertion, deletion, and other operations, as well as
Objectmethods for obtaining length, keys, and values. - The
Object.entries()method returns an array of key-value pairs from an object, which can be accessed using an index starting at zero, e.g.pairs[1]. - We
learnedabout different data storage elements, such as variables, lists, and objects , which are used to store and manipulate data depending on the situation.


