FE Dev
Belfast
-
DailyPay
- Belfast, Northern ireland
- https://www.thejoecodes.com/
Pinned Loading
-
The Joe Codes Blog - Sass Mixins Exa...
The Joe Codes Blog - Sass Mixins Example 1@mixin commonButtonProperties(
2$padding: 0.75rem,
3$margin: 0.5rem,
4$min-width: 100px
5) {
-
The Joe Codes Blog - Promises --> Ca...
The Joe Codes Blog - Promises --> Callback Hell --> Promises Error Handling 1const promiseAddOneRejected = (value) => {
2return new Promise((resolve, reject) => {
3setTimeout(() => {
4if (value >= 100) {
5reject('🤷 Number is too big!!');
-
The Joe Codes Blog - Promises --> Cr...
The Joe Codes Blog - Promises --> Creating a new promise 1// "Producing code"... may be an asynchronous task that takes some length of time
2const someValidator = (value) => {
3return new Promise((resolve, reject) => {
4setTimeout(() => {
5if (typeof value !== 'string') {
-
The Joe Codes Blog - Callback Hell
The Joe Codes Blog - Callback Hell 1const addOne = (value, callback) => {
2setTimeout(callback(value + 1), 1000);
3};
45const multiplyByTwo = (value, callback) => {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.