We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f9c822 commit 3fc5495Copy full SHA for 3fc5495
chapter11/02-InfiniteRecursion.js
@@ -0,0 +1,15 @@
1
+var i = 0;
2
+
3
+function recursiveFn () {
4
+ i++;
5
+ recursiveFn();
6
+}
7
8
+try {
9
10
+} catch (ex) {
11
+ alert('i = ' + i + ' error: ' + ex);
12
13
14
+//chrome 37 = 20955 RangeError: Maximum call stack size exceeded
15
+//ff 27 = 343429 InternalError: too much recursion
chapter11/05-BigONotation.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title></title>
+</head>
+<body>
+<script type="text/javascript" src="05-BigONotation.js"></script>
+</body>
+</html>
0 commit comments