Java Script Class - 2

S P SHARMA CLASSES

Mon Aug 29, 2022

J3.html


<html>
<head>
</head>
<body>
<script>
var name="ram";
var _A = 5;
var $b=9;
//var 2c=8;
var c2=8;
d_1=7;
//abc
7
163
93866
document.write(name +"<br>"+_A+"<br>"+$b+"<br>"+c2+"<br>"+d_1);


</script>


</body>
</html>


J4.html


<html>
<head>
</head>
<body>
<script>
b=10;
function show()
{
var a=5;
document.write("a+b="+ (a+b));
document.write("<br>a+b="+ a+b);
document.write("<br>"+a+b);
document.writeln("<br>");
document.writeln(a+"5"+b);
document.writeln("<br>");
document.writeln(a+b+"5");
}
show();
//document.writeln(a+b+"5");
document.writeln(b+"5");
//alert(b);
var c;
document.writeln(c);
c=8;
d="A";
document.writeln(c+d);
document.writeln(c*d);
document.writeln(c-d);
document.writeln(c/d);

document.writeln("<br>");
document.writeln(typeof c);
document.writeln("<br>");
document.writeln(typeof d);
document.writeln("<br>");
document.writeln(typeof 8);
document.writeln("<br>");
document.writeln(typeof "9");
document.writeln("<br>");
document.writeln(typeof '9');
var name='ram';
document.writeln(typeof name);
document.writeln("<br>");
document.writeln(typeof 3.14);
document.writeln("<br>");
document.writeln(typeof false);
document.writeln("<br>");
document.writeln(typeof true);
var k;
document.writeln("<br>");
document.writeln(typeof k);
document.writeln("<br>");
document.writeln(typeof null);
document.writeln("<br>");
document.writeln(typeof function display(){});
</script>


</body>
</html>


S P SHARMA CLASSES
S P SHARMA SIR

Launch your GraphyLaunch your Graphy
100K+ creators trust Graphy to teach online
𝕏
S P SHARMA CLASSES 2024 Privacy policy Terms of use Contact us Refund policy