Home » Web » CSS (page 10)

CSS

Finally… A Post on Finally in Promises

“When does finally fire in a JavaScript promise?” This is a question I was asked in a recent workshop and I thought I’d write up a little post to clear up any confusion. The answer is, to quote Snape: …always. The basic structure is like this: try { // I’ll try to execute some code for you } catch(error) { ...

Read More »

Powered by WP Robot