Day 30

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

February 12th 2018

Hello! At the ES6 course by Wes Bos I learned about ES Symbols and ES Lint. Symbols are a new primitive type added to ES6. It is a unique identifier, to avoid name collisions It has a descriptor, which are unique, However they are not numerable, cannot loop over them, butyou can use the symbol as property key

const syms = Object.getOwnPropertySymbols(classRoom);
const data = syms.map(sym => classRoom[sym]);

We also learned about ESLint - code checker for ES6

npm install -g eslint

eslint bad-code.js

touch .eslintrc - json file

In the JSON file eslintrc

{
"env": {
"es6": true,
"browser": true
},
"extends":"eslint:recommended",
"rules": {
"no-console": 0
}
}
eslint bad-code.js

You can check your code for errors.

At the Web Development Bootcamp I started to learn about Backend development, and http requests.
Cheers!