Skip to content

Instantly share code, notes, and snippets.

@lplume
Created January 24, 2018 10:44
Show Gist options
  • Save lplume/f3da6aaed8c6ce71512471e4cd621323 to your computer and use it in GitHub Desktop.
Save lplume/f3da6aaed8c6ce71512471e4cd621323 to your computer and use it in GitHub Desktop.
Have a nice time
const str = "Something back";
say(str);
say(back(str));
say=function(a){return window.speechSynthesis.cancel(),window.speechSynthesis.speak(new SpeechSynthesisUtterance(a))},back=function(a){return a.toLowerCase().split("").reverse().join("")};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment