Professional Documents
Culture Documents
Untitled
Untitled
Untitled
----------------
OOPs
Interpreted
Enables dynamic interactivity on web pages
Follows the syntax and structure of the C programming language.
Case-sensitive language.
Application of JavaScript
-------------------------------------------------------
Displaying pop-up windows and dialog boxes (like an alert dialog box, confirm
dialog box and prompt dialog box),
Client-side validation,
Dynamic drop-down menus,
Displaying date and time,
Code:
<script ...>
JavaScript code
</script>
Assignment:
*Add two numbers
*if a given value is even/odd
*leap year
*print table
*sum of digits of a number (123=1+2+3)