>

Wednesday, 16 December 2015

Ex:1 -> Simple output message

The below example illustrates code to write out an output message

Here name is a variable.
The rules for specifying JavaScript variable names are
•Variable names are case sensitive
•Variable names must begin with a letter, the $ character, or the underscore character
JavaScript variables are declared using the var keyword.
The scope of the variables can be local or global.Local variables are deleted when the function is completed.
Global variables are deleted when you close the page.
Here we are manipulating the document object.We are using writeln() in document object,this method takes document object
and output a specified string with a line break at the end.

0 comments:

Post a Comment