Page 116 - DCAP202_Fundamentals of Web Programming
P. 116
Unit 8: Programming Constructs in JavaScript
7. What is the use of dialog boxes in JavaScript? Notes
8. Differentiate between alert and prompt dialog boxes in JavaScript.
9. What is the use of confirm dialog box in JavaScript?
10. What are the differences between confirm and alert dialog boxes in JavaScript?
Answers: Self Assessment
1. Conditional 2. If
3. switch case 4. For
5. while 6. do...while
7. break 8. Continue
9. function 10. function literal
11. user-defined 12. Arguments
13. Local 14. Alert
15. prompt
8.8 Further Readings
Books Hall, 2009, Core Web Programming, 2/E, Pearson Education India.
Jon Duckett, 2011, Beginning Web Programming with HTML, XHTML and CSS, John
Wiley & Sons.
Robert F. Breedlove,1996, Web Programming Unleashed, Sams.net.
Tim Downey, 2012, Guide to Web Development with Java: Understanding Website
Creation, Springer.
Online links http://www.quirksmode.org/js/function.html
http://www.roseindia.net/tutorial/javascript/javascriptbasics/JavaScript-User-
Defined-Functions.html
http://www.tutorialspoint.com/javascript/javascript_function_literals.htm
h t t p : / / w w w . w e b d e v e l o p e r s n o t e s . c o m / t u t o r i a l s / j a v a s c r i p t /
global_local_variables_scope_javascript.php3
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/
Functions_and_function_scope/arguments
http://www.programming-free.com/2012/07/javascript-built-in-functions-
with.html#.UYFBhVIg7IU
LOVELY PROFESSIONAL UNIVERSITY 109