JAVASCRIPT STRUCTURE
JAVASCRIPT STRUCTURE
- By Mohammad --
- Sunday, 30 May, 2021
JAVASCRIPT STRUCTURE
We place our javascript code in between Script tag, below structure will give a structre of code where we can place javascript code.
Example : 1
<html>
<head>
SCRIPT
/SCRIPT
</head>
<body>
</body>
</html>
Example : 2
We can place javascript in between body tag also , where we need to place our javascript code will depends upon the requirement of our code.
<html>
<head>
</head>
<body>
SCRIPT
/SCRIPT
</body>
</html>