Set value to true if any of a, b, or c is 7 or if their sum is 7. Set value false otherwise.

javascript programming
exercise: conditionals 03

x
    document.write("<td><pre>"+str(testAA[i][nArgs])+"</pre></td>");
 
1
<html>
2
<script>
3
4
function sumOrInputIs7(a, b, c) {
5
  var value;
6
  // ADD CODE UNDER THIS LINE
7
  
8
  return value;
9
}
10
11
var testAA = [
12
  [0,0,0,false],
13
  [1,5,8,false],
14
  [0,0,7,true],
15
  [6,7,8,true],
16
  [6,0,1,true],
17
  [7,7,7,true],
18
  [99,5,2,false]
19
];
20
21
function cloneTree(obj) {
22
  if (obj === null)
23
    return null;
24
  if (typeof obj !== "object")
25
    return obj;
26
  var newobj = {};
27
  for (var prop in obj) {
28
    newobj[prop] = cloneTree(obj[prop]);
29
  }
30
  return newobj;
31
}
32
33
var argAAS = [];
34
for (var i=0;i<testAA.length;i++) {
35
  argAAS.push( [] );
36
  for (var j=0;j<testAA[i].length-1;j++) {