Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.