Test Your Knowledge
Which tags do you use to enclose JavaScript code?
By default, to which part of a document will JavaScript code output?
How can you include JavaScript code from another source in your documents?
Which JavaScript function is the equivalent of
echoorprintin PHP?How can you create a comment in JavaScript?
What is the JavaScript string concatenation operator?
Which keyword can you use within a JavaScript function to define a variable that has local scope?
Give two cross-browser methods to display the URL assigned to the link with an
idofthislink.Which two JavaScript commands will make the browser load the previous page in its history array?
What JavaScript command would you use to replace the current document with the main page at the http://www.oreilly.com website?
See Chapter 13 Answers in Appendix A for the answers to these questions.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access