JavaScript Syntax

JavaScript Syntax specifies the set of rules for constructing a JavaScript program. The is used to write JavaScript statements. The script tag can be used anywhere in the head or body but it is a good practice to use it within the tag. Syntax: <script language=”javascript” type=”text/javascript”> //JavaScript statements </script> Attributes: language: represents the Java … Read more