ES6 Object Litteral Shorthand Notation?
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
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...

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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dwyl/learn-javascript
-
enhancement
dwyl/learn-javascript#39 · 1 assignee ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
dwyl/learn-javascript#38 · 3 reactions ·
-
JavaScript Grammar Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
dwyl/learn-javascript#37 · 2 reactions ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
dwyl/learn-javascript#36 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
dwyl/learn-javascript#35 ·
All issues in dwyl/learn-javascript
Similar issues
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Link Checker Report Openautomated issue report
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
VoltAgent/awesome-design-md#469 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
KhronosGroup/glTF#2648 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
sccn/sccn.github.io#108 ·