Summary
Here are the things you should remember from this chapter:
JavaScript's tools for identifying a visitor's browser (
navigator.appName
,navigator.appVersion
, andnavigator.userAgent
)How
if-then
,if-then-else
, andif-then-else-if
statements workHow Boolean expressions work
How to redirect your visitors to other web pages
How to import JavaScript from another file
Did you get all that? If so, here's an assignment for you.
Get The Book of JavaScript, 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.