Practical No 5
Practical No 5
<html>
<body>
<script>
</script>
</body>
</html>
<html>
<head>
<title> scope</title>
<script>
</script>
</head>
<body>
</body>
</html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
</script>
</body>
</html>
<html>
<body>
<script>
document.writeln(str.search("scripting"));
</script>
</body>
</html>
<html>
<body>
<script>
var n=s1.indexOf("a");
document.writeln(n+"<br>");
document.writeln(s1.search("scripting"));
var m=s1.lastIndexOf("a");
document.writeln("<br>"+m);
</script>
</body>
</html>
<html>
<head>
<title> scope</title>
<script>
function init()
var n1=str.search("o");
var n2=str.indexOf("u");
var n3=str.search('are');
var n4 = str.indexOf('you');
</script>
</head>
<body onload="init()"></body>
</html>
<html>
<head>
<title> scope</title>
<script>
function init()
</script>
</head>
</html>
<html>
<head>
<title> scope</title>
<script>
function init()
document.write("<br>substr: "+str.substring(16,25));
</script>
</head>
<body onload="init()">
</body>
</html>
<html>
<head>
<title> scope</title>
<script>
function init()
{
var num1=42;
var num2='82';
</script>
</head>
<body onload="init()">
</body>
</html>
<html>
<head>
</head>
<title> scope</title>
<body onload="init()">
<script>
function init()
</script>
</body>
</html>
<html>
<body>
<script>
document.writeln(str.toLowerCase());
document.writeln("<br>"+str.toUpperCase());
</script>
</body>
</html>
<html>
<body>
<script>
</script>
</body>
</html>
<html>
<body>
<script>
var x="Javatpoint";
document.writeln(x.charCodeAt(3));
document.write("<br>");
document.write(res);
document.write("<br>"+res1);
</script>
</body>
</html>
<html>
<head>
</head>
<body>
<script>
document.write(res );
</script>
</body>
</html>