Consider the following JavaScript code in which the function add, as discussed in the class notes, returns the sequence obtained by adding the corresponding elements in two sequences:
var s = function () {
return is.cons(
1,
function () {
return is.cons(
1,
function () {
return add(s,is.tl(s));
});
});
}();
console.log(is.take(s,10));
|
What is the output produced by the code given above?