Skip to content

Instantly share code, notes, and snippets.

@charliewilco
Last active December 29, 2022 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charliewilco/94a31acd3e9a9f6a0561269018c0d69e to your computer and use it in GitHub Desktop.
Save charliewilco/94a31acd3e9a9f6a0561269018c0d69e to your computer and use it in GitHub Desktop.
// 1. What is the difference between an array and a set?
// ---
const values = [];
const _values = new Set();
// 2. What is the difference between an object and a map?
// ---
const dict = {};
const _dict = new Map();
// 3. What is the advantage of using a class?
// ---
class Foo {}
// 4. What is the difference between the following operators?
// ---
// =
// ==
// ===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment