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 a = () => new Promise(function (resolve, reject) { | |
setTimeout(() => resolve("pass"), 3000); | |
}).then((res) => { console.log("console outcome promise A after 3 secs"); return "As I promised, I'm here! " + res; }) | |
let b = () => new Promise(function (resolve, reject) { | |
setTimeout(() => resolve("pass"), 5000); | |
}).then((res) => { console.log("console outcome promise B after 5 secs", res); return Promise.resolve("I'm resolved!") }) | |
let c = () => new Promise(function (resolve, reject) { | |
setTimeout(() => reject("fail"), 7000); |
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
Objectives | |
---------- | |
* Basic things (https://www.drupal.org/coding-standards) | |
* Coding standards for a Model | |
* Coding standards for a Behaviours | |
* Coding standards for a Controller | |
* Coding standards for a Components | |
* Coding standards for a View | |
* Coding standards for a Helper |