நன்றி
முத்து கார்த்திகேயன், மதுரை .
சோர்ஸ் கோட்
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script >
var a=10;
var b=20;
var product=a*b;
document.write("product="+product);
</script>
</head>
<body>
</body>
</html>
local.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
function a()
{
var x=10;
}
a();
document.write(x);
</script>
</head>
<body>
</body>
</html>
global.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script >
var data=50;
function a()
{
alert(data);
}
function b()
{
alert(data);
}
a();
b();
document.write(data);
</script>
</head>
<body>
</body>
</html>
No comments:
Post a Comment