- #1
mindauggas
- 127
- 0
var lost = [4, 8, 15, 16, 23, 42];
var count = lost.length;
var isLost = function (n) {
for (i=lost[0]; i<count; i=lost[i+1]) {
if ( n === lost) {
return "true";
}
}
return "false";
};
is it possible to in corporate array positions into the for loop? (i)
do I even begin to approach the correct "incorporation"? (ii)
var count = lost.length;
var isLost = function (n) {
for (i=lost[0]; i<count; i=lost[i+1]) {
if ( n === lost) {
return "true";
}
}
return "false";
};
is it possible to in corporate array positions into the for loop? (i)
do I even begin to approach the correct "incorporation"? (ii)