Last active
December 15, 2015 18:59
-
-
Save elijahmanor/5307478 to your computer and use it in GitHub Desktop.
Angry Birds of JavaScript: White Bird - Quality
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
/*jshint maxparams:3, maxdepth:2, maxstatements:5, maxcomplexity:3, maxlen:80 */ | |
/*global console:false */ | |
(function( undefined ) { | |
"use strict"; | |
function test1( arg1, arg2, arg3, arg4 ) { | |
console.log( "too many parameters!" ); | |
if ( arg1 === 1 ) { | |
console.log( arg1 ); | |
if ( arg2 === 2 ) { | |
console.log( arg2 ); | |
if( arg3 === 3 ) { | |
console.log( "too much nesting!" ); console.log( arg3 ); console.log( arg4 ); | |
} | |
} | |
} | |
console.log( "too many statements!" ); | |
} | |
test1( 1, 2, 3, 4 ); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment