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!