CSS Pract-3
CSS Pract-3
Code-1:
<html>
<body>
<script>
var a=[91,110,89,56,84];
document.write("</br>");
document.write(a[i] + "<br/>");
a[a.length]=90;
a[a.length]=150;
document.write("</br>");
document.write(a[i] + "<br/>");
a.sort();
document.write(a[i] + "<br/>");
var num=a.shift();
document.write(a[i] + "<br>");
document.write("</br>");
document.write("</br>");
document.write("8. Dispaly Array element After Reverse function is: " + arr );
</script>
</body>
</html>
Output:-
Code-2:
<html>
<body>
<script>
var i;
emp[0] = "Lily";
emp[1] = "Vaishu";
emp[2] = "Harshu";
for (i=0;i<emp.length;i++){
document.write(emp[i] + "<br>");
</script>
</body>
</html>
Output:-
Code-3:
<html>
<body>
<script>
function func()
var s = 'It';
func();
</script> </html>
Output: