Skip to content

Commit

Permalink
Create callback hell and mayhem
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulcoder committed Aug 6, 2016
1 parent 270e5f5 commit 8f02695
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions callbackHell.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
setTimeout(function (name) {
var catList = name + ',';

setTimeout(function (name) {
catList += name + ',';

setTimeout(function (name) {
catList += name + ',';

setTimeout(function (name) {
catList += name + ',';

setTimeout(function (name) {
catList += name;

console.log(catList);
}, 1, 'Lion');
}, 1, 'Snow Leopard');
}, 1, 'Lynx');
}, 1, 'Jaguar');
}, 1, 'Panther');

0 comments on commit 8f02695

Please sign in to comment.