Test Your Knowledge
How are Boolean values handled differently by PHP and JavaScript?
What is the difference between unary, binary, and ternary operators?
What is the best way to force your own operator precedence?
When would you use the
===
(identity) operator?What are the simplest two forms of expressions?
Name the three conditional statement types.
How do
if
andwhile
statements interpret conditional expressions of different data types?Why is a
for
loop more powerful than awhile
loop?What is the purpose of the
with
statement?How can you let JavaScript deal gracefully with an error when it encounters one?
See Chapter 14 Answers in Appendix A for the answers to these questions.
Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.