End of year Potluck of advances in JS language, libraries and IDEs.
ml5 - https://ml5js.org - "Friendly Machine Learning for the Web "
brain.js - https://github.com/BrainJS, https://github.com/BrainJS/brain.js/wiki - "The community carries the torch"
Vega - https://vega.github.io/vega-lite
const, let, var, async, ... etc
d = function(a){
return new Promise(resolve=>{
setTimeout(function(){
console.log('awaited value '+a+' for 1 sec at '+Date())
resolve(2*a)
},1000)
})
}
/*
q=await d(9);
q=await d(q);
q=await d(q);
q=await d(q);
q=await d(q);
q
*/
See also https://codeburst.io/javascript-es-2017-learn-async-await-by-example-48acc58bad65
x0=2;
da = async function(x){
return await d(x)
}
//q=await da(9);q=await da(q)
...