Adscend

Click Here



Click Here

Monday

Basic Syntax Tutorial

Basic Syntax

Usually, JavaScript code starts with the tag <script type="text/javascript"> and ends with the tag </script>.
Some of the basic rules for JavaScript are below:

1.JavaScript borrows most of its syntax from Java.

2.JavaScript is case sensitive.

3.Single line comments begin with //

4.Multiline comments begin with /* and end with */

5.Statements terminate with semicolons.

6.Curly brackets are used for blocks.


<script type="text/javascript">
{
document.write("hello world");
}
</script>




No comments:

Post a Comment