Skip to content

Instantly share code, notes, and snippets.

View suityou01's full-sized avatar

Charlie Benger-Stevenson suityou01

View GitHub Profile
@suityou01
suityou01 / coroutines.gist
Created October 30, 2020 17:24
Coroutines
/*
Types of function in javascript
1. Regular function - function f () {}
2. Anonymous function - () => {}
3. Asynchronous function - async function f () {}
4. Asynchronous anonymous function async () {}
5. Generator function - function* f () {}
6. Asyncronous generator function async function* f (){}
*/
@suityou01
suityou01 / promises.gist
Created October 30, 2020 11:16
Promises promises
/*Simple IIFE examples*/
//https://developer.mozilla.org/en-US/docs/Glossary/IIFE
/*
(function(){
console.log("I am an immediately invoked function expression, or IFFE");
})();
(()=>{ //NB It uses an arrow function '=>'
console.log("I am an immediately invoked anonymous function expression");
})();
*/
@suityou01
suityou01 / Keybase.md
Last active September 14, 2019 08:39
Keybase.md

Keybase proof

I hereby claim:

  • I am suityou01 on github.
  • I am suityou01 (https://keybase.io/suityou01) on keybase.
  • I have a public key ASBQT9WjgkcXj7b1QJn1OlGvdHdKH_AnP2VNtBz1LolT6go

To claim this, I am signing this object: