sergiocharm,
опять 25
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<script>
function fn(a) {
var b = [""];
a = a.map(function(a, d) {
var c = [];
a.forEach(function(a) {
b.forEach(function(b) {
c.push(b + " " + a)
})
});
return b = c
});
return a
};
function show(arr)
{
arr.forEach(function(a,i){
var textarea = document.createElement("textarea"),
br = document.createElement("br");
textarea.value = a.join("\n")
textarea.rows = a.length + 1;
textarea.cols = 15 + i*15;
document.body.appendChild(textarea);
document.body.appendChild(br);
})
}
arr = [["яблоко","груша","слива"],["вкусно","горько"],["взять","бросить","выжать"],["утро","день","вечер","ночь","сумерки"],["пчёлы","фигня"]]
show(fn(arr))
</script>
</body>
</html>