Last active
December 28, 2015 02:09
-
-
Save curtis1000/7425486 to your computer and use it in GitHub Desktop.
The Debugger Statement
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>The JS Debugger</title> | |
</head> | |
<body> | |
<h1>JS Debugger</h1> | |
<p>You must have your browser's web inspector open in order to see debugger breakpoints.</p> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
var colors = ['red','lightblue','yellowgreen','turquoise']; | |
for (var i=0; i < colors.length; i++) { | |
debugger; | |
$('body').css({"background-color": colors[i]}); | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment