Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ES6 Object Litteral Shorthand Notation?

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

No repository file, test, or entry point is named. Start by reading the linked MDN reference and the examples in this issue, then locate where learn-javascript introduces object literals; done should be defined as an agreed lesson or example covering ES6 shorthand notation and its browser-support guidance.

Written by the indexing model from the issue text.

Description

enhancement question

This is a reasonably good/useful feature: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#New_notations_in_ECMAScript_2015
it allows us to do the following:

// imagine that there are already variables in your script/app for name and email
var obj = {
  name,
  email
}

instead of having to type out the values for the fields in the Object:

// imagine that there are already variables in your script/app for name and email
var obj = {
  name: name,
  email: email
}

The JavaScript engine infers what the values are given the names of the keys in the Object...

Given that most browsers don't support this...
es6-object-literal-shorthand-notation
I will be using it selectively...

Dominant language
HTML
Stars
65
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwyl/learn-javascript

All issues in dwyl/learn-javascript

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.