Skip to Main Content
Exam Ref 70-480: Programming in HTML5 with JavaScript and CSS3
book

Exam Ref 70-480: Programming in HTML5 with JavaScript and CSS3

by Rick Delorme
August 2014
Intermediate to advanced content levelIntermediate to advanced
400 pages
10h 19m
English
Microsoft Press
Content preview from Exam Ref 70-480: Programming in HTML5 with JavaScript and CSS3

Chapter 2. Implement program flow

Being able to manipulate the Document Object Model (DOM), create animations, and use the various application programming interfaces (APIs) provided by the JavaScript library is a great skill to have. To leverage the power of the user experience fully, however, you need to provide users with certain website functions only under certain conditions, a concept known as program flow. Without program flow, JavaScript programs would process from top to bottom in the order in which the code was written. This is useful in some cases, but in most situations in which a dynamic user experience is required, logic needs to be processed conditionally. Program flow can be conditional, iterative, or behavioral:

Conditional

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.
Start your free trial

You might also like

Training Guide: Programming in HTML5 with JavaScript and CSS3

Training Guide: Programming in HTML5 with JavaScript and CSS3

Glenn Johnson
HTML Pocket Reference, Second Edition

HTML Pocket Reference, Second Edition

Jennifer Niederst Robbins

Publisher Resources

ISBN: 9780133966299Purchase book