Friday, October 17, 2014

Write A program to use of Type Function in javascript.


Write A program to use of Type Function in javascript.
Code : typefun.html
<html>
<body>
<script type="text/javascript">
document.write(isNaN(235));
document.write("<br>");
document.write(isNaN("hello"));
document.write("<br>");
var a=eval("130/2");
document.write(a);
document.write("<br>");
document.write(parseInt(34.40));
document.write("<br>");
document.write(parseFloat("abcd"));
document.write(parseFloat(34.30));
</script>
</body>
</html>

No comments: