This is code from an episode of Fun Fun Function: https://youtu.be/6sQDTgOqh-I
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
- From: funfunfunction https://www.youtube.com/watch?v=0X1Ns2NRfks&feature=em-subs_digest | |
- Using mocha to run tests | |
*/ | |
const assert = require('assert') | |
function getAnimals(fetch, id) { | |
return fetch('http://api.animalfarmgame.com/animals/' + id) | |
.then(response => response.json()) |
I hereby claim:
- I am shawnlknight on github.
- I am sleberknight (https://keybase.io/sleberknight) on keybase.
- I have a public key ASClDJfRxTRo9WBcgNmgZ4F3wkaCAaohb3iqqau7m6kE9Ao
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let say = new SpeechSynthesisUtterance('say'); | |
let what = new SpeechSynthesisUtterance('what'); | |
what.rate = 0.4; | |
what.pitch = 2; | |
speechSynthesis.speak(say); | |
speechSynthesis.speak(what); |