Skip to content

Instantly share code, notes, and snippets.

@AkashRajvanshi
Created November 2, 2019 13:26
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 AkashRajvanshi/b37732b423bf0122b44c8d0c5e0846a3 to your computer and use it in GitHub Desktop.
Save AkashRajvanshi/b37732b423bf0122b44c8d0c5e0846a3 to your computer and use it in GitHub Desktop.
const fullName = {
first: 'Akash',
last: 'Rajvanshi'
};
console.log(fullName.first) // Akash
// In this code, we create an object via an object literal, which starts with a curly brace and end with a curly brace {...}.
// Inside it, we have propety: {Key = first, last} and {value = Akash, Rajvanshi}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment