View manifest.json
{
"name": "JavaScript Store",
"short_name": "JavaScript Store",
"lang": "en-US",
"start_url": "/",
"display": "fullscreen",
"orientation": "portrait",
"theme_color": "#f2e058",
"icons": [
{
View proxyandreflect.js
function propDefaults(defaults) {
const handler = {
get (obj, prop) {
return Reflect.get(obj, prop) || defaults[prop];
}
};
return new Proxy({}, handler);
}
const palette = propDefaults({color: "yellow"});
View jspromisses.js
let promise = new Promise((resolve, reject) => {
//invoke async operation, then
if (/* success */) {
resolve("response received! Success!");
} else {
reject(Error("Something failed"));
}
});
promise.then(function(result) {
View es6templatestrings.js
displayFeatures() {
  this._features.forEach((feature, index) => console.info(`${this._language} feature ${index} ${feature}`))
}
View es6iterators.js
let s = “Hello”;
let sIterator =  s[Symbol.iterator]();
console.info( sIterator.next().value ) //H
console.info( sIterator.next().value ) //e
console.info( sIterator.next().value ) //l
View es6arrows.js
var store = {
  _language: “JavaScript”,
   _features: [],
   displayFeatures() {
     this._features.forEach((feature, index) =>console.info(this._language + feature + index+ “ ”+ feature))
   }
}
View es6class.js
class Person() { //instance method
speak() {
console.log(‘speak’);
}
}
class Person() { //static method
isHuman() {}
}
class Person() { //initialize instances
constructor(arguments) {}