Day 27

aronson(25)
Published in
#code
Words
94
Reading
1 min
Listen
Play
9y

February 9th 2018

Hello! At the ES6 course by Wes Bos I learned about ES6 upgrades to object literal/
If the property and the variable you are setting are the exact same name, you can have method definitions inside of an object

const dog = {
firstName:first,
last,
age,
breed,
pals:["Hugo", "Sunny"]
};
console.log(dog);

Or if there are two array variables you can merge them together.

const shirt = {
[keys.shift()]:values.shift(),
[keys.shift()]:values.shift(),
[keys.shift()]:values.shift(),
}

I practice CSS grid. I swear.

And at the Web Development Bootcamp I worked on tweeking the To-Do list.
Cheers!

Day 27 | Ecency