@@ -275,9 +275,7 @@ function value in a new place, pass it as an argument to a function,
275275and so on. Similarly, a variable that holds a function is still just a
276276regular variable and can be assigned a new value, like so:
277277
278- {{test no}}
279-
280- ```
278+ ``` {test: no}
281279var launchMissiles = function(value) {
282280 missileSystem.launch("now");
283281};
@@ -380,7 +378,7 @@ line 4. The line after that calls `console.log` again.
380378
381379We could show the flow of control schematically like this:
382380
383- ``` null
381+ ``` {lang: null}
384382top
385383 greet
386384 console.log
@@ -414,9 +412,7 @@ back-and-forth between two functions. Rather, it _would_ be infinite,
414412if the computer had an infinite stack. As it is, we will run out of
415413space, or “blow the stack”.
416414
417- {{test no}}
418-
419- ```
415+ ``` {test: no}
420416function chicken() {
421417 return egg();
422418}
@@ -465,9 +461,7 @@ can be called either with two arguments or with a single argument, in
465461which case the exponent is assumed to be two, and the function behaves
466462like ` square ` .
467463
468- {{test wrap}}
469-
470- ```
464+ ``` {test: wrap}
471465function power(base, exponent) {
472466 if (exponent == undefined)
473467 exponent = 2;
@@ -589,9 +583,7 @@ _recursive_. Recursion allows some functions to be written in a
589583different style. Take, for example, this alternative implementation of
590584` power ` :
591585
592- {{test wrap}}
593-
594- ```
586+ ``` {test: wrap}
595587function power(base, exponent) {
596588 if (exponent == 0)
597589 return 1;
@@ -730,7 +722,7 @@ To better understand how this function produces the
730722effect we're looking for, let's look at all the calls to ` find ` that
731723are made when searching for a solution for the number 13.
732724
733- ``` null
725+ ``` {lang: null}
734726find(1, "1")
735727 find(6, "(1 + 5)")
736728 find(11, "((1 + 5) + 5)")
@@ -794,7 +786,7 @@ the numbers of cows and chickens on a farm, with the words `Cows` and
794786` Chickens ` after them, and zeros padded before both numbers so that
795787they are always three digits long.
796788
797- ``` null
789+ ``` {lang: null}
798790007 Cows
799791011 Chickens
800792```
@@ -993,9 +985,7 @@ takes two arguments and returns their minimum.
993985
994986{{if interactive
995987
996- {{test no}}
997-
998- ```
988+ ``` {test: no}
999989// Your code here.
1000990
1001991console.log(min(0, 10));
@@ -1047,9 +1037,7 @@ Why? Can you think of a way to fix this?
10471037
10481038{{if interactive
10491039
1050- {{test no}}
1051-
1052- ```
1040+ ``` {test: no}
10531041// Your code here.
10541042
10551043console.log(isEven(50));
@@ -1108,9 +1096,7 @@ Rewrite `countBs` to make use of this new function.
11081096
11091097{{if interactive
11101098
1111- {{test no}}
1112-
1113- ```
1099+ ``` {test: no}
11141100// Your code here.
11151101
11161102console.log(countBs("BBC"));
0 commit comments