moar slides, disable localhost pwa cache

This commit is contained in:
Jeremy Likness
2020-01-28 10:23:02 -08:00
parent 0b60742e8a
commit dad9a93078
8 changed files with 122 additions and 25 deletions

26
slides/120-gosinta.html Normal file
View File

@@ -0,0 +1,26 @@
<title>Arrow Functions (Gosinta)</title>
<h1>Arrow Functions (Gosinta)</h1>
<pre>
var solarsystem = {
planets: ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter',
'Saturn', 'Uranus', 'Neptune', 'Pluto (?)'],
showPlanets: function() {
this.planets.forEach(function(planet, idx) {
console.log(this.planets[idx]);
})
}
};
solarsystem.showPlanets(); // crash! ⛔
</pre>
<pre class="appear">
var solarsystem = {
planets: ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter',
'Saturn', 'Uranus', 'Neptune', 'Pluto (?)'],
showPlanets: function() {
this.planets.forEach((planet, idx) => {
console.log(this.planets[idx]);
})
}
};
solarsystem.showPlanets(); // success! 🌍
</pre>