What is “syntactic sugar”?
It is syntax within a programming language meant to make things easier to read or express.
What is the ‘typeof’ an ES6 ‘class’?
function
Describe ES6 class syntax.
class Person {
constructor(name) {
this.name = name;
}
getName() {
return this.name;
}
}*Note: the word “constructor” in the example above is not just a placeholder. You actually have to type that in.
What is “refactoring”?
Refactoring is the process of restructuring existing computer code - changing the factoring - without changing its functionality or its external behavior.