Files
RobinNixon 53063593e3 Final
Final
2020-12-10 13:51:13 +00:00

14 lines
255 B
HTML

<script>
haystack = new Array()
haystack[17] = "Needle"
for (j = 0 ; j < 20 ; ++j)
{
if (haystack[j] == "Needle")
{
document.write("<br>- Found at location " + j)
break
}
else document.write(j + ", ")
}
</script>