O'Reilly logo

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test Your Knowledge

  1. How are Boolean values handled differently by PHP and JavaScript?

  2. What is the difference between unary, binary, and ternary operators?

  3. What is the best way to force your own operator precedence?

  4. When would you use the === (identity) operator?

  5. What are the simplest two forms of expressions?

  6. Name the three conditional statement types.

  7. How do if and while statements interpret conditional expressions of different data types?

  8. Why is a for loop more powerful than a while loop?

  9. What is the purpose of the with statement?

  10. 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required