var str = "Apples are round, apples are juicy, and apples are sometimes red."; var replStr = /apples/i; var newStr = str.replace(replStr, "oranges");
str = "one two three four five"; str = str.replace(/(\w+) *(\w+) *(\w+)/, "$3 $2 $1");
For Question 9
</SCRIPT> var newWindow;
function openWindow() { newWindow = window.open('', 'newWin', 'toolbar=yes,location=yes,scrollbars=yes,width=300,height=200') }
</SCRIPT>
<A HREF="javascript:openWindow()">Open a new window</A> <A HREF="javascript:newWindow.close()">Close a new window</A>
You have: answers correct out of a possible ten.
The question numbers that were not correct are: